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,
Ovid
In reply to Re^2: shocking imprecision
by Ovid
in thread shocking imprecision
by xrmb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |