Subject: | Documentation error for exponent() method |
Math::BigInt v.1.78
perl v5.8.7 built for cygwin-thread-multi-64int
CYGWIN_NT-5.0 capella 1.5.21(0.156/4/2) 2006-07-30 14:21 i686 Cygwin
---
The documentation for Math::BigInt says, regarding $e, the output from
exponent():
Currently, for BigInts $e is always 0, except for NaN, +inf and -inf,
where it is "NaN"; [...]
The correct is
Currently, for BigInts $e is always 0, except +inf and -inf, where it
is "+inf"; and for NaN, where it is "NaN"; [...]
Patch attached.
Subject: | BigInt.patch |
--- BigInt.pm 2006-09-12 14:43:16.415377600 +0200
+++ BigInt-patched.pm 2006-09-12 14:43:16.225104000 +0200
@@ -3822,9 +3822,10 @@
C<< ($m,$e) = $x->parts() >> is just a shortcut that gives you both of them
in one go. Both the returned mantissa and exponent have a sign.
-Currently, for BigInts C<$e> is always 0, except for NaN, +inf and -inf,
-where it is C<NaN>; and for C<$x == 0>, where it is C<1> (to be compatible
-with Math::BigFloat's internal representation of a zero as C<0E1>).
+Currently, for BigInts C<$e> is always 0, except +inf and -inf, where it is
+C<+inf>; and for NaN, where it is C<NaN>; and for C<$x == 0>, where it is C<1>
+(to be compatible with Math::BigFloat's internal representation of a zero as
+C<0E1>).
C<$m> is currently just a copy of the original number. The relation between
C<$e> and C<$m> will stay always the same, though their real values might