CalculatorsLesson 160Free preview
Temperature Converter
This lesson is part of Web Developer Tools · All levels
Summary
The temperature converter changes the temperature between Celsius, Fahrenheit, and Kelvin using a formula that involves offsets, not just the displacement factor. Celsius to Fahrenheit is calculated with F = C x 9/5 + 32, whereas Kelvin = Celsius + 273.15. Understanding this formula is important so that the conversion results are not wrong when used in code or experiment.
Key points
- F = C x 9/5 + 32
- C = (F - 32) x 5/9
- K = C + 273,15
- Absolute zero is -273.15 Celsius or 0 Kelvin.
- Kelvin is written without a degree symbol.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.