Just another Perl shrine | |
PerlMonks |
Re^2: shocking imprecisionby Ovid (Cardinal) |
on Oct 18, 2011 at 05:32 UTC ( [id://932067]=note: print w/replies, xml ) | Need Help?? |
Actually, that's why sprintf and printf are recommended: perl -E 'say int(-1.2 + .5); printf("%d\n",-1.2)'One of those is going to send the Monk back here with more questions :) Cheers,
In Section
Seekers of Perl Wisdom
|
|