Quote:
|
Originally Posted by Kilo
converting is easy.. but can you convert back? mine isn't working!!!
i set celsius to 50 then i convert
i get 147.60 fahrenheit.
then when i set fahrenheit to 147.60 and convert
i get 64.22 celsius? WTF???
|
your formula is wrong
do this
[PHP]
//from celsius to fahrenheit
tempValue = (9 / 5) * Celsius + 32;
//from fahreheit to celsius
tempValue = ( 5 / 9 ) * (Fahrenheit - 32);
[/PHP]
tell us the results!
EDIT: Now you did it! lol you did it while I was posting this! lol