in reply to decimal places
I know how to round off a number using 'int'
I know how to round not using int. ;-) int just truncates, which isn't rounding half the time.
Check Perl FAQ 4 or use perldoc -q round for more info.
— Arien