Get reference code
Appearance
Sample
StudyPhysics

Celsius to Fahrenheit calculator explained

Timur2008-04-27 18:37:22
This is kind of hello world for our calculators engine. This calculator is made by two lines of JavaScript and description of three variables with dialogs. First I've added "input variable", named it "Temperature" and set variable name to "temp", when I've added two output variables with names "Celsius" and "Fahrenheit" and variable names "Tc" and "Tf" respectively. Function body consists of following lines:

Tc.SetValue((5/9)*(temp-32));
Tf.SetValue((9/5)*temp+32);

Note, that I was using "variable names" for number manipulations.
Result you can see below:
Celsius FahrenheitCreative Commons Attribution/Share-Alike License 3.0 (Unported)
0.12345678901234567890
 Celsius:
 Fahrenheit:




Request a calculator

View all calculators
(462 calculators in total. )

Comments

No comments yet!

 All discussions Be the first to post a comment!
Spam filter