Skip Menu |

This queue is for tickets about the Math-BigInt CPAN distribution.

Report information
The Basics
Id: 21445
Status: resolved
Worked: 10 min
Priority: 0/
Queue: Math-BigInt

People
Owner: TELS [...] cpan.org
Requestors: peter.john.acklam [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.77
Fixed in: 1.78



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
Thanx applied to my local repository, will appear in v1.78.
This issue has been fixed in the released v1.78. Thank you for your report, Tels