Skip Menu |

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

Report information
The Basics
Id: 21586
Status: resolved
Worked: 15 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: (no value)



Subject: Incorrect result when comparing with NaN
The following SHOULD NOT give a warning about an uninitialized value, however it SHOULD return false, since comparing a NaN to anything (even another NaN) should return false: $ perl -MMath::BigInt -wle 'print Math::BigInt->bnan() == 2' Use of uninitialized value in numeric eq (==) at -e line 1. 1 The same happens with Math::BigFloat.
I agree, will fix in v1.78, but it requires a bit of work.
I just released Math::BigInt 1.80 to CPAN, which fixes this issue in both BigInt and BigFloat. Thank you for your report, and sorry for the long delay.