in reply to Removing decimals in number

You can also use printf:
printf "%d" => 141.32124355465 # prints 141

--sacked

Replies are listed 'Best First'.
Re: Re: Removing decimals in number
by duff (Parson) on May 14, 2004 at 21:26 UTC
    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