![]() |
|
Do you know where your variables are? | |
PerlMonks |
A bug of sprintf or not?by pysome (Scribe) |
on Oct 20, 2008 at 09:36 UTC ( #718178=perlquestion: print w/replies, xml ) | Need Help?? |
pysome has asked for the wisdom of the Perl Monks concerning the following question:
I found a odd question when i wanna round a float number with Perl buildin function "sprintf" my code is Of course, i can use the manual round function like some referrence: But the question is Why $price1 has been rounded and price2 has not been rounded?
Back to
Seekers of Perl Wisdom
|
|