3 package Math::BigFloat::Trace;
12 our ($PACKAGE, @EXPORT_OK, $accuracy, $precision, $round_mode, $div_scale);
14 our @ISA = qw(Exporter Math::BigFloat);
16 our $VERSION = '0.44';
18 use overload; # inherit overload from BigFloat
21 $accuracy = $precision = undef;
27 my $class = ref($proto) || $proto;
31 $a = $_[0] if defined $_[0];
33 $p = $_[1] if defined $_[1];
34 my $self = Math::BigFloat->new($value, $a, $p, $round_mode);
36 # remember, downgrading may return a BigInt, so don't meddle with class
37 # bless $self, $class;
39 print "MBF new '$value' => '$self' (", ref($self), ")";
44 print "MBF import ", join(' ', @_);
47 # we catch the constants, the rest goes go BigFloat
50 push @a, $_ if $_ ne ':constant';
52 overload::constant float => sub { $self->new(shift); };
54 Math::BigFloat->import(@a); # need it for subclasses
55 # $self->export_to_level(1,$self,@_); # need this ?