Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: easy math?

by Xaositect (Friar)
on Nov 22, 2002 at 00:43 UTC ( #214964=note: print w/replies, xml ) Need Help??


in reply to easy math?

If you just want to print it out, I'd go with cfreak's sprintf solution, but just to let you know, there is an int builtin function.

ie:
my $wholenumber = int(54.7);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://214964]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2020-10-27 15:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (257 votes). Check out past polls.

    Notices?