Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by trizen (Hermit)
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1083355]
help
Chatterbox?
[marto]: good morning all

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-06-29 07:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (654 votes). Check out past polls.