1.8 * degrees + 32;"."/> 1.8 * degrees + 32;".">
Home >Web Front-end >JS Tutorial >How to convert Celsius to Fahrenheit using JavaScript
To convert Celsius to Fahrenheit in JavaScript, you need to follow the conversion equation "F = 1.8 * C 32", and the conversion method is "const celsiusToFahrenheit = degrees => 1.8 * degrees 32;".
The operating environment of this article: windows7 system, javascript version 1.8.5, DELL G3 computer
How to convert Celsius to Fahrenheit using JavaScript?
js Convert Celsius temperature to Fahrenheit
Convert Celsius temperature to Fahrenheit.
Follow the conversion equation F = 1.8 * C 32.
const celsiusToFahrenheit = degrees => 1.8 * degrees + 32;
celsiusToFahrenheit(33); // 91.4
Related introduction:
Fahrenheit scale refers to the unit used to measure temperature, symbol ℉. Fahrenheit = 32 degrees Celsius × 1.8.
Celsius was proposed by Swedish astronomer Anders Celsius in 1742 and has since been improved. The meaning of degrees Celsius means that at 1 standard atmosphere, the temperature of a pure ice-water mixture is 0 degrees Celsius, and the boiling point of water is 100 degrees Celsius.
The temperature measurement unit of the Celsius temperature scale (C), represented by the symbol °C, is one of the most widely used temperature scales in the world. Celsius is now included in the International System of Units (SI).
T(K)=t(°C) 273.15, T is the absolute temperature scale.
Recommended study: "javascript Advanced Tutorial"
The above is the detailed content of How to convert Celsius to Fahrenheit using JavaScript. For more information, please follow other related articles on the PHP Chinese website!