in reply to Re: Removing decimals in number
in thread Removing decimals in number

Except that doesn't always work:
$ perl -e 'printf "%d\n", 141.999999999999999' 142
int is the right way to go. Or even POSIX::floor