1.8 * degrees + 32;"."/> 1.8 * degrees + 32;".">

Home  >  Article  >  Web Front-end  >  How to convert Celsius to Fahrenheit using JavaScript

How to convert Celsius to Fahrenheit using JavaScript

藏色散人
藏色散人Original
2021-07-01 11:47:053735browse

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;".

How to convert Celsius to Fahrenheit using JavaScript

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn