3 package Math::BigInt::Subclass;
9 use Math::BigInt(1.45);
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 $value = 0 if !defined $value; # no || 0 here!
31 # Store the floating point value
32 my $self = bless Math::BigInt->new($value), $class;
33 $self->{'_custom'} = 1; # make sure this never goes away
39 Math::BigInt::bgcd(@_);
44 Math::BigInt::blcm(@_);
50 # Math::BigInt->import(@_);
51 $self->SUPER::import(@_); # need it for subclasses
52 #$self->export_to_level(1,$self,@_); # need this ?