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
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
Fixed in v1.999706