Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: how to always round up in perl?by chrestomanci (Priest) |
on Feb 25, 2011 at 09:19 UTC ( [id://890150]=note: print w/replies, xml ) | Need Help?? |
That fails if $n is allready an integer. You would need something like:
Or as a one liner:
In Section
Seekers of Perl Wisdom
|
|