in reply to round numbers

You can use the Posix module:
use POSIX; print floor(5.2); #5 print ceil(5.2); #6