View Single Post
Old Feb 15th, 2006, 8:49 PM   #37
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
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
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote