Skip Menu |
 

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

Report information
The Basics
Id: 106112
Status: resolved
Priority: 0/
Queue: Math-BigInt

People
Owner: Nobody in particular
Requestors: peter.john.acklam [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.999706



Subject: numify() doesn't handle infs and nans
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-1765-1437991057-1045.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 535
Download (untitled) / with headers
text/plain 535b
The numify() method converts objects into scalar values, but it doesn't handle infs and nans: $ perl -Mautobox::universal=type -MMath::BigInt -wle '$x = Math::BigInt -> binf() -> numify(); print $x, " is a ", type($x)' inf is a STRING $ perl -Mautobox::universal=type -MMath::BigInt -wle '$x = Math::BigInt -> bnan() -> numify(); print $x, " is a ", type($x)' NaN is a STRING Compare this with Inf() in Math::Complex: $ perl -Mautobox::universal=type -MMath::Complex=Inf -wle '$x = Inf; print $x, " is a ", type($x)' inf is a FLOAT
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-1765-1437991057-1045.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-1765-1437991057-1045.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-29830-1451926759-565.106112-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 18
Fixed in v1.999706


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.