3 package Math::BigInt::Subclass;
9 use Math::BigInt(1.49);
10 use vars qw($VERSION @ISA $PACKAGE @EXPORT_OK
11 $accuracy $precision $round_mode $div_scale);
13 @ISA = qw(Exporter Math::BigInt);
14 @EXPORT_OK = qw(bgcd);
19 $accuracy = $precision = undef;
26 my $class = ref($proto) || $proto;
29 my $a = $accuracy; $a = $_[0] if defined $_[0];
30 my $p = $precision; $p = $_[1] if defined $_[1];
31 my $self = Math::BigInt->new($value,$a,$p,$round_mode);
33 $self->{'_custom'} = 1; # make sure this never goes away
39 Math::BigInt::bgcd(@_);
44 Math::BigInt::blcm(@_);
50 $self->SUPER::import(@_); # need it for subclasses
51 #$self->export_to_level(1,$self,@_); # need this ?