Skip Menu |

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

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

Owner: Nobody in particular
Requestors: peter.john.acklam [...]

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

Subject: bpow() doesn't handle infinity correctly
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-13026-1487937970-307.0-0-0 [...]>
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: 354
Download (untitled) / with headers
text/plain 354b
This case should return inf: $ perl -MMath::BigInt -wle '$x = Math::BigInt -> binf("+"); print $x ** $x' NaN These two cases should return 0: $ perl -MMath::BigInt -wle '$x = Math::BigInt -> binf("+"); print $x ** (-$x)' NaN $ perl -MMath::BigFloat -wle '$x = Math::BigFloat -> binf("+"); print $x ** (-$x)' inf These bugs have been around for ages.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to