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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 368
Download (untitled) / with headers
text/plain 368b
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
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00
In-Reply-To: <rt-3.6.HEAD-454-1158066837-928.21446-4-0 [...] rt.cpan.org>
Content-Disposition: inline
Received-SPF: neutral (x1.develooper.com: local policy)
References: <RT-Ticket-21446 [...] rt.cpan.org> <rt-3.6.HEAD-454-1158066837-928.21446-4-0 [...] rt.cpan.org>
X-Pair-Authenticated: 84.63.4.36
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 57A814D8284 for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 12 Sep 2006 12:13:20 -0400 (EDT)
Received: (qmail 26194 invoked by alias); 12 Sep 2006 16:13:20 -0000
Received: from relay03.pair.com (HELO relay03.pair.com) (209.68.5.17) by la.mx.develooper.com (qpsmtpd/0.28) with SMTP; Tue, 12 Sep 2006 09:13:17 -0700
Received: (qmail 54580 invoked from network); 12 Sep 2006 16:13:10 -0000
Received: from unknown (HELO bloodgate.com) (unknown) by unknown with SMTP; 12 Sep 2006 16:13:10 -0000
Delivered-To: cpan-bug+math-bigint [...] diesel.bestpractical.com
User-Agent: KMail/1.9.1
Subject: Re: [rt.cpan.org #21446] Docs/code inconsistency for bnorm() method
Return-Path: <nospam-abuse [...] bloodgate.com>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: bug-Math-BigInt [...] rt.cpan.org
Date: Tue, 12 Sep 2006 18:17:42 +0200
Message-Id: <200609121817.50137 [...] bloodgate.com>
To: bug-Math-BigInt [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Tels <nospam-abuse [...] bloodgate.com>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.6.HEAD-438-1158077608-729.21446-0-0 [...] rt.cpan.org>
Content-Length: 1765
Download (untitled) / with headers
text/plain 1.7k
-----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-----
MIME-Version: 1.0
In-Reply-To: <rt-3.6.HEAD-438-1158077608-729.21446-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-421-1158136651-1238.21446-0-0 [...] rt.cpan.org>
References: <RT-Ticket-21446 [...] rt.cpan.org> <rt-3.6.HEAD-454-1158066837-928.21446-4-0 [...] rt.cpan.org> <200609121817.50137 [...] bloodgate.com> <rt-3.6.HEAD-438-1158077608-729.21446-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: 335
Download (untitled) / with headers
text/plain 335b
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-4327-1170421619-1803.21446-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.