develooper Front page | perl.perl5.porters | Postings from September 2014

[perl #122843] Bleadperl v5.21.3-113-g8c12dc6 breaks CHOCOLATE/Scalar-Util-Numeric-0.22.tar.gz

Thread Next
From:
Michael G Schwern via RT
Date:
September 29, 2014 18:04
Subject:
[perl #122843] Bleadperl v5.21.3-113-g8c12dc6 breaks CHOCOLATE/Scalar-Util-Numeric-0.22.tar.gz
Message ID:
rt-4.0.18-1512-1412013832-860.122843-15-0@perl.org
Those are all tests for what should be invalid numbers.  "near-misses (wrong spelling and wrong case) for the Win32 Inf and NaN.  these should be invalid numbers on all platforms".  I added some annotation to the tests to find out what exactly failed.

!isnan(1.#InD)
!isnan(-1.#InD)
!isinf(1.#InF)
!isinf(-1.#InF)

1.#InF and -1.#InF are considered infinity.
1.#InD and -1.#iND are considered NaN.

I'm no number wizard, but it looks like a regression in perl.  I'll leave it to y'all to decide.

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=122843

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About