Skip Menu |

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

Report information
The Basics
Id: 21446
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: Docs/code inconsistency for bnorm() 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 "EXAMPLES" section of the Math::BigInt manual says $x = Math::BigInt->bnorm("-0 00"); # BigInt "0" the code actually returns a NaN, not a zero: $ perl -MMath::BigInt -wle 'print for Math::BigInt->bnorm("-0 00")' 0
Subject: Re: [rt.cpan.org #21446] Docs/code inconsistency for bnorm() method
Date: Tue, 12 Sep 2006 18:17:42 +0200
To: bug-Math-BigInt [...] rt.cpan.org
From: Tels <nospam-abuse [...] bloodgate.com>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Moin, On Tuesday 12 September 2006 15:13, Peter John Acklam via RT wrote: Show quoted text
> Tue Sep 12 09:13:56 2006: Request 21446 was acted upon. > Transaction: Ticket created by pjacklam > Queue: Math-BigInt > Subject: Docs/code inconsistency for bnorm() method > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: pjacklam@online.no > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=21446 > > > > 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 "EXAMPLES" section of the Math::BigInt manual says > > $x = Math::BigInt->bnorm("-0 00"); # BigInt "0" > > the code actually returns a NaN, not a zero: > > $ perl -MMath::BigInt -wle 'print for Math::BigInt->bnorm("-0 00")' > 0
Uhm, but it prints a 0 for you? :) I think the example should be "-0.00", instead of "-0 00". Will fix it, thanx a lot for the report. Best wishes, Tels - -- Signed on Tue Sep 12 18:16:37 2006 with key 0x93B84C15. Visit my photo gallery at http://bloodgate.com/photos/ PGP key on http://bloodgate.com/tels.asc or per email. I'm a Sis-sis-sis-sis-sis-sis-sis-sinnahr... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iQEVAwUBRQbdrncLPEOTuEwVAQIaAAf+PtvPjDItUF6XPGhlXmB97mF8X45+Gw2M TejyAwWcK194QASEmrnQDcSOljQeWdirVq1XHj+miedfz7gDWBvxt7HT03v6Bu/v crK6YcyuR2y8zz7ia8HNYwpufyKbWHvKop2ThViS8XQOWIdwXcWGEqlPsvmjDUfo GQdknXKNXN/tu1XnOi7nxfILqdxCzWTH9kwPclNYP8Oj2ZJfgncOAPJ6PuP7Erdf dBoStYIFMPotC+dfiINE3cfsUkUQikvkSx1tfXYkC0naJlq6+053TmgFJw3WxAYv dugsU3p7M7T9U1dM6dI5xlqwBkuzbUdgkiU1lzEPmM+ZVMFeVClOAA== =iVz5 -----END PGP SIGNATURE-----
nospam-abuse@bloodgate.com wrote: Show quoted text
> > Peter John Acklam via RT wrote: >
> > $ perl -MMath::BigInt -wle 'print for Math::BigInt->bnorm("-0 00")' > > 0
> > Uhm, but it prints a 0 for you? :)
No, I must have cut and paste incorrectly. Here is what I get: $ perl -MMath::BigInt -wle 'print for Math::BigInt->bnorm("-0 00")' NaN
This issue has been fixed in the released v1.78. Thank you for your report, Tels