Previous Up Next

10.1.5  Convert between Celsius and Fahrenheit: Celsius2Fahrenheit, Fahrenheit2Celsius

The Celsius2Fahrenheit command takes a number as an argument, representing a temperature in degrees Celsius.
Celsius2Fahrenheit returns the number representing the temperature in Fahrenheit.
Input:

Celsius2Fahrenheit(a)

Output:

a*9/5+32

Input:

Celsius2Fahrenheit(0)

Output:

32

The Fahrenheit2Celsius command converts Fahrenheit temperatures to Celsius.
Input:

Fahrenheit2Celsius(212)

Output:

100

Previous Up Next