Check out this thread for lots of options: How do I round a number?.use feature 'say'; say int(-0.2 + 0.5); # 0 say int(3.49 + 0.5); # 3 say int(3.50 + 0.5); # 4
In reply to Re: Rounding with sprintf and -0
by Loops
in thread Rounding with sprintf and -0
by johnfl68
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |