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; }
In reply to Re^2: perl newbie question
by dsheroh
in thread perl newbie question
by john83reuben
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |