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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1158065702-450-7"
Content-Length: 0
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 476
Download (untitled) / with headers
text/plain 476b
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
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------=_1158065702-450-6"
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Length: 0
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 0
Content-Type: application/octet-stream; name="BigInt.patch"
Content-Disposition: inline; filename="BigInt.patch"
Content-Transfer-Encoding: base64
Content-Length: 893
Download BigInt.patch
text/x-diff 893b
--- 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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-25772-1169813557-1045.21445-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 59
Thanx applied to my local repository, will appear in v1.78.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-4372-1170421487-258.21445-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 82
This issue has been fixed in the released v1.78. Thank you for your report, Tels


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.