3 package Math::BigFloat::Subclass;
9 use Math::BigFloat(1.27);
10 use vars qw($VERSION @ISA $PACKAGE
11 $accuracy $precision $round_mode $div_scale);
13 @ISA = qw(Exporter Math::BigFloat);
18 $accuracy = $precision = undef;
25 my $class = ref($proto) || $proto;
28 my $a = $accuracy; $a = $_[0] if defined $_[0];
29 my $p = $precision; $p = $_[1] if defined $_[1];
30 # Store the floating point value
31 my $self = Math::BigFloat->new($value,$a,$p,$round_mode);
33 $self->{'_custom'} = 1; # make sure this never goes away