Temperature Conversion
Convert between Celsius, Fahrenheit, and Kelvin
Temperature Conversion
ready
$ convert --from [unit] --to [unit] --value [number]
$
>
formulas.ts
// Common Temperature Conversion Formulas
1const°F = (°C × 9/5) + 32
2const°C = (°F - 32) × 5/9
3constK = °C + 273.15
4const°C = K - 273.15
references.json
// Common Temperature Conversion References
{
"Water Boiling Point":"100°C",
"Water Freezing Point":"0°C",
"Absolute Zero":"-273.15°C",
"Normal Body Temperature":"36.5-37.5°C",
"Room Temperature (approx.)":"20-25°C"
}
guide.md
Why temperature conversion needs more than multiplication
Celsius, Fahrenheit, and Kelvin do not share the same zero point. You cannot convert them with a single multiply-by-factor step the way you convert meters to feet. Each scale needs an affine transform: multiply by a ratio of degree sizes, then add or subtract an offset.
method.ts
Formulas used here
- Celsius to Fahrenheit: °F = (°C × 9/5) + 32.
- Fahrenheit to Celsius: °C = (°F − 32) × 5/9.
- Celsius to Kelvin: K = °C + 273.15 (same degree size as Celsius).
- Kelvin to Celsius: °C = K − 273.15.
sources.md
References
- - SI Brochure (BIPM): kelvin defined via Boltzmann constant; degree Celsius defined relative to kelvin.
- - NIST: temperature conversion guidance and ITS-90 notes for precision metrology.
examples.md
Worked examples
Oven recipe: 180 °C to Fahrenheit
- Multiply by 9/5: 180 × 1.8 = 324.
- Add 32: 324 + 32 = 356.
Result: 180 °C = 356 °F
Weather: 72 °F to Celsius
- Subtract 32: 72 − 32 = 40.
- Multiply by 5/9: 40 × 5/9 ≈ 22.222.
Result: 72 °F ≈ 22.22 °C
Lab note: 25 °C to kelvin
- Add 273.15: 25 + 273.15 = 298.15.
Result: 25 °C = 298.15 K
Pitfalls
- • Absolute zero is 0 K (−273.15 °C). Negative kelvin values are not physical temperatures.
- • Room-temperature “quick” rules (double Celsius and add 30) are rough; oven baking needs the exact formula.
- • Do not confuse temperature difference (ΔT) with a point on the scale. A 10 °C rise equals an 18 °F rise, but 10 °C is not 18 °F.
Where it matters
- - Following baking recipes written for a different region’s oven dial.
- - Reading weather reports while traveling.
- - Science homework that mixes Celsius and kelvin.
FAQ.md
Temperature FAQ
01 Q: Is 0 °C the same as 32 °F?
Yes for the freezing point of water at standard pressure. They label the same physical state with different numbers.
02 Q: Why does Kelvin use no degree symbol in SI?
The SI unit is the kelvin (K). Writing “degrees Kelvin” is outdated; use “kelvin” or “K”.