Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Rounding a number using (s)printfby borisz (Canon) |
on Jan 19, 2005 at 22:36 UTC ( [id://423535]=note: print w/replies, xml ) | Need Help?? |
Floating point numbers are not exactly represented.
so 1.25 is the correct result.
Boris
In Section
Seekers of Perl Wisdom
|
|