Thomas Jakub <[EMAIL PROTECTED]> said something to this effect on 07/09/2001:
> in c++ you can floor a variable to drop the decimal
> points.  How can you do this with perl?

Use the int function (perldoc -f int).

my $pi = 3.1415927;

print int $pi;

# prints 3

(darren)

-- 
Westheimer's Discovery: A couple of months in the laboratory can
save a couple of hours in the library.
    -- Frank H. Westheimer

Reply via email to