in reply to Re^2: Number too big to fit in integer
in thread Number too big to fit in integer
I get the same with 5.36.0 as I did with 5.26.1. Here's what I originally used to home in on the tipping point:
% /opt/v5.36.0/bin/perl -MMath::BigInt -wle '$z0 = Math::BigInt->new(2 +)**64; for my $i (0..12) { $zi = $z0 + 2**$i; $ni = "$zi"; $d = ($ni +== ~0) ? "same" : "differ"; print "$i: $d" }' 0: same 1: same 2: same 3: same 4: same 5: same 6: same 7: same 8: same 9: same 10: same 11: same 12: differ %
Using eval "$zi == ~0" to make it more like direct use gives me the same result.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Number too big to fit in integer
by syphilis (Archbishop) on Jan 01, 2023 at 02:00 UTC | |
by hv (Prior) on Jan 01, 2023 at 04:27 UTC | |
by syphilis (Archbishop) on Jan 01, 2023 at 09:40 UTC |