in reply to Using the Math::BigFloat->digit() method
Just use
Math::BigInt:
#!/usr/bin/perl use v5.10; use strict; use warnings; use Math::BigInt lib => 'FastCalc'; my $n = 123; my $x = Math::BigInt->new($n); say $x; say $x->digit(-1);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Using the Math::BigFloat->digit() method
by Anonymous Monk on Apr 23, 2014 at 09:35 UTC |
In Section
Seekers of Perl Wisdom