http://qs321.pair.com?node_id=1083292


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

    Q: How do I Math::BigFloat->digit() ??

    A: Khen1950fx says Just use Math::BigInt:

    That is pure genius Khen1950fx and completely answer the question, I love you