Menu

#5 C to F conversion wrong.

open
nobody
None
5
2007-08-21
2007-08-21
Anonymous
No

when you convert from C to F the math is wrong.

it currently shows:

return round((9*($temp + 32)/5), 2) . "F";

But when doing this F value is way to high IE 27c is 80.6F, but the math above shows this as 106F

The line should read.

return round(($temp * 9)/5+32, 2) . "F";

Discussion


Log in to post a comment.