Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Using the Math::BigFloat->digit() method

by trizen (Friar)
on Apr 23, 2014 at 13:31 UTC ( #1083355=note: print w/ replies, xml ) Need Help??


in reply to Using the Math::BigFloat->digit() method

In addition to the above solutions, we can also use the as_int method:

my $n = Math::BigFloat->new(123); say $n->as_int->digit(-1); # prints: 1


Comment on Re: Using the Math::BigFloat->digit() method
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2014-09-20 18:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (160 votes), past polls