in reply to Re^3: Number too big to fit in integer
in thread Number too big to fit in integer
Of course, this particular perl configuration sees 18446744073709553665 and 18446744073709554600 as the same value, anyway:D:\>perl -MMath::BigInt -wle "$x = Math::BigInt->new(~0); $x++; while( +\"$x\" == ~0){$x++}; print $x;" 18446744073709553665
However, that your 5.26.1 regards 18446744073709554600 and 18446744073709554599 as different values is a bug in 5.26.1. (I see the same bug in my Windows build of 5.26.0.)D:\>perl -le "print 'ok' if 18446744073709553665 == 184467440737095546 +00;" ok
For me, that fails to output 'ok' on 5.26.0. (If 5.26.0 has been built with -Duselongdouble, then 5.26.0 does get it right and outputs 'ok'.)D:\>perl -wle "print 'ok' if 18446744073709554600 == 18446744073709554 +599;" ok
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Number too big to fit in integer
by hv (Prior) on Jan 01, 2023 at 04:27 UTC | |
by syphilis (Archbishop) on Jan 01, 2023 at 09:40 UTC |