in reply to Largest integer in 64-bit perl
So, on a 32-bit system configured for 32-bit IV, the 64-bit NV lets you store larger integers in a float even though NV is meant to be used for fractional values. On a 64-bit system, the IV is always 64-bit so there's no advantage to using NVs to store integers.
You can check the details of how your perl was compiled using the Config module.
perl -E 'use Config; say $Config{ivsize}; say $Config{nvsize}'
FWIW, the only 32-bit system I still have access to has a perl compiled with 64-bit IV.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Largest integer in 64-bit perl
by LanX (Saint) on May 16, 2025 at 19:29 UTC |