- or download this
Math::BigFloat 1.998
Math::BigInt 1.9991
Math::BigInt::Calc 1.997
- or download this
sub _len {
my $cx = $_[1];
(@$cx-1)*$BASE_LEN+length(int($cx->[-1])); # <--- line 1209
}
- or download this
sub _digit {
my ($c,$x,$n) = @_;
my $len = _len('',$x);
...
}
- or download this
@ISA = qw/Math::BigInt/;
- or download this
...
my $CALC = 'Math::BigInt::Calc';
...
$n = $n->numify() if ref($n);
$CALC->_digit($x->{value},$n||0);
}
- or download this
my ($self,$x,$n) = (undef, $YOUR_n, -1);
- or download this
Math::BigInt::Calc->_digit(undef, -1);
- or download this
#!/usr/bin/env perl
...
say '$n->digit(): ', $n->digit();
};
warn $@ if $@;
- or download this
123
REF $n: Math::BigFloat
...
$n->digit(-1): 1
$n->digit(1): 2
$n->digit(): 3