GIF89a;
EcchiShell v1.0
/
/
proc/
self/
root/
usr/
share/
perl5/
new($value,$a,$p,$round_mode);
# remember, downgrading may return a BigInt, so don't meddle with class
# bless $self,$class;
print "MBF new '$value' => '$self' (",ref($self),")";
return $self;
}
sub import
{
print "MBF import ",join(' ',@_);
my $self = shift;
# we catch the constants, the rest goes go BigFloat
my @a = ();
foreach (@_)
{
push @a, $_ if $_ ne ':constant';
}
overload::constant float => sub { $self->new(shift); };
Math::BigFloat->import(@a); # need it for subclasses
# $self->export_to_level(1,$self,@_); # need this ?
}
1;