3 package Math::BigInt::Trace;
10 use vars qw($VERSION @ISA $PACKAGE @EXPORT_OK
11 $accuracy $precision $round_mode $div_scale);
13 @ISA = qw(Exporter Math::BigInt);
17 use overload; # inherit overload from BigInt
20 $accuracy = $precision = undef;
27 my $class = ref($proto) || $proto;
30 my $a = $accuracy; $a = $_[0] if defined $_[0];
31 my $p = $precision; $p = $_[1] if defined $_[1];
32 my $self = Math::BigInt->new($value,$a,$p,$round_mode);
34 print "MBI new '$value' => '$self' (",ref($self),")";
40 print "MBI import ",join(' ',@_);
42 Math::BigInt::import($self,@_); # need it for subclasses
43 # $self->export_to_level(1,$self,@_); # need this ?