in reply to Re: Number too big to fit in integer
in thread Number too big to fit in integer
That's tricky: for a number that doesn't fit in UV (integer), Perl automatically stores it in NV (double) which can result in an immediate loss of precision.
See also $Config{nv_overflows_integers_at}:
$ uname -p x86_64 $ perl -MConfig -le 'print eval $Config{nv_overflows_integers_at}' 9007199254740992
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Number too big to fit in integer
by jpl (Monk) on Dec 25, 2022 at 17:10 UTC | |
by jpl (Monk) on Dec 26, 2022 at 16:59 UTC |