diff options
author | Tels <nospam-abuse@bloodgate.com> | 2002-08-14 00:02:09 +0200 |
---|---|---|
committer | hv <hv@crypt.org> | 2002-08-22 22:29:45 +0000 |
commit | b4bc5691c8dfad19b52d103e3b12af9342fcea38 (patch) | |
tree | 23ba012d3637ec64db0f0a50ac3477840a8e727b /lib/bigrat.pm | |
parent | e1e1143f887ddae0f16d3743c74922bf4cc42ade (diff) | |
download | perl-b4bc5691c8dfad19b52d103e3b12af9342fcea38.tar.gz |
bignum-0.12 updates from:
Subject: [ANNOUCNE] Big Math::Big* update
Message-Id: <200208132121.g7DLLRV21408@crypt.org>
p4raw-id: //depot/perl@17758
Diffstat (limited to 'lib/bigrat.pm')
-rw-r--r-- | lib/bigrat.pm | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/bigrat.pm b/lib/bigrat.pm index 54ef91ed30..ddc053426e 100644 --- a/lib/bigrat.pm +++ b/lib/bigrat.pm @@ -1,10 +1,11 @@ package bigrat; require 5.005; -$VERSION = '0.04'; +$VERSION = '0.05'; use Exporter; -@ISA = qw( Exporter ); -@EXPORT_OK = qw( ); +@ISA = qw( Exporter ); +@EXPORT_OK = qw( ); +@EXPORT = qw( inf NaN ); use strict; @@ -141,15 +142,19 @@ sub import print "Math::BigRat\t\t v$Math::BigRat::VERSION\n"; exit; } + $self->export_to_level(1,$self,@a); # export inf and NaN } +sub inf () { Math::BigInt->binf(); } +sub NaN () { Math::BigInt->bnan(); } + 1; __END__ =head1 NAME -bigrat - Transparent BigNumber/BigRational support for Perl +bigrat - Transparent BigNumber/BigRationale support for Perl =head1 SYNOPSIS |