in reply to Re: perl newbie question
in thread perl newbie question
But (s)printf really is the right solution here...$newtemp =100*((($temp-32)*5)/9); if ($newtemp > 0) { $newtemp = int($newtemp + 0.5)/100; } else { $newtemp = int($newtemp - 0.5)/100; }
|
|---|