3 package Math::BigFloat::Subclass;
9 use Math::BigFloat(1.38);
10 use vars qw($VERSION @ISA $PACKAGE
11 $accuracy $precision $round_mode $div_scale);
13 @ISA = qw(Exporter Math::BigFloat);
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 # Store the floating point value
33 my $self = Math::BigFloat->new($value,$a,$p,$round_mode);
35 $self->{'_custom'} = 1; # make sure this never goes away
41 *objectify = \&Math::BigInt::objectify;