How does JavaScript change degrees Celsius to Fahrenheit
This article mainly introduces the relevant knowledge of "how JavaScript changes degrees Celsius to Fahrenheit". The editor shows you the operation process through actual cases. The operation method is simple, fast and practical. I hope this article "how to change degrees Celsius to Fahrenheit by JavaScript" can help you solve the problem.
To change degrees Celsius to Fahrenheit in JavaScript, we need to follow the conversion equation "F = 1.8C + 32", and the conversion method is "const celsiusToFahrenheit = degrees = > 1.8* degrees + 32;".
This article operating environment: windows7 system, javascript1.8.5 version, DELL G3 computer
How does JavaScript change degrees Celsius to Fahrenheit?
Js converts Celsius to Fahrenheit
Change the temperature to Fahrenheit.
Follow the conversion equation F = 1.8 * C + 32.
Const celsiusToFahrenheit = degrees = > 1.8 * degrees + 32 * celsius ToFahrenheit (33); / / 91.4
Related introduction:
Fahrenheit scale refers to the unit used to measure temperature, the symbol ℉. Fahrenheit = 32 + degrees Celsius x 1.8.
Degrees Celsius was proposed by the Swedish astronomer Anders Celsius in 1742 and has been improved since then. Degrees Celsius means that at 1 standard atmospheric pressure, 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 scale (C), denoted by the symbol centigrade °C, is one of the more widely used temperature scales in the world. Degrees Celsius is now included in the International system of Units (SI).
T (K) = t (°C) + 273.15 T is the absolute temperature scale.
This is the end of the introduction to "how JavaScript changes degrees Celsius to Fahrenheit". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.