diff options
author | Tels <nospam-abuse@bloodgate.com> | 2005-01-01 19:59:51 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-01-04 08:36:50 +0000 |
commit | b68b7ab1e328997a801e104fc190aa117fc75775 (patch) | |
tree | 40601ec203bce143a7c0b70593e8f236f7972227 /lib/bigint.pm | |
parent | 755db5d606be076ff7c6dcb6af89e15fb080c85e (diff) | |
download | perl-b68b7ab1e328997a801e104fc190aa117fc75775.tar.gz |
Math::BigInt v1.74, Math::BigRat v0.14, bignum v0.16
Message-Id: <200501011859.52858@bloodgate.com>
p4raw-id: //depot/perl@23739
Diffstat (limited to 'lib/bigint.pm')
-rw-r--r-- | lib/bigint.pm | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/bigint.pm b/lib/bigint.pm index 69f80a2164..695b4c4bed 100644 --- a/lib/bigint.pm +++ b/lib/bigint.pm @@ -1,7 +1,7 @@ package bigint; require 5.005; -$VERSION = '0.05'; +$VERSION = '0.06'; use Exporter; @ISA = qw( Exporter ); @EXPORT_OK = qw( ); @@ -212,7 +212,7 @@ constants are created as proper BigInts. Floating point constants are truncated to integer. All results are also truncated. -=head2 OPTIONS +=head2 Options bigint recognizes some options that can be passed while loading it via use. The options can (currently) be either a single letter form, or the long form. @@ -257,9 +257,9 @@ line. This will be hopefully fixed soon ;) This prints out the name and version of all modules used and then exits. - perl -Mbigint=v -e '' + perl -Mbigint=v -=head2 MATH LIBRARY +=head2 Math Library Math with the numbers is done (by default) by a module called Math::BigInt::Calc. This is equivalent to saying: @@ -277,7 +277,7 @@ Math::BigInt::Bar, and when this also fails, revert to Math::BigInt::Calc: Please see respective module documentation for further details. -=head2 INTERNAL FORMAT +=head2 Internal Format The numbers are stored as objects, and their internals might change at anytime, especially between math operations. The objects also might belong to different @@ -289,9 +289,9 @@ accessor methods. E.g. looking at $x->{sign} is not a good idea since there is no guaranty that the object in question has such a hash key, nor is a hash underneath at all. -=head2 SIGN +=head2 Sign -The sign is either '+', '-', 'NaN', '+inf' or '-inf' and stored seperately. +The sign is either '+', '-', 'NaN', '+inf' or '-inf'. You can access it with the sign() method. A sign of 'NaN' is used to represent the result when input arguments are not @@ -299,13 +299,13 @@ numbers or as a result of 0/0. '+inf' and '-inf' represent plus respectively minus infinity. You will get '+inf' when dividing a positive number by 0, and '-inf' when dividing any negative number by 0. -=head2 METHODS +=head2 Methods Since all numbers are now objects, you can use all functions that are part of the BigInt API. You can only use the bxxx() notation, and not the fxxx() notation, though. -=head2 CAVEAT +=head2 Caveat But a warning is in order. When using the following to make a copy of a number, only a shallow copy will be made. @@ -379,6 +379,6 @@ as L<Math::BigInt::BitVect>, L<Math::BigInt::Pari> and L<Math::BigInt::GMP>. =head1 AUTHORS -(C) by Tels L<http://bloodgate.com/> in early 2002, 2003. +(C) by Tels L<http://bloodgate.com/> in early 2002 - 2005. =cut |