|
|
| There's more than one way to do things | |
| PerlMonks |
Re^7: Largest integer in 64-bit perlby syphilis (Archbishop) |
| on May 30, 2025 at 11:16 UTC ( [id://11165167]=note: print w/replies, xml ) | Need Help?? |
|
You are talking about "weirdness", so what would be "normal" in your opinion. I just find it weird that, on a platform where 64-bit positive integer values can be stored exactly, it is considered acceptable that all other integer values be rounded to 53 bits of precision. I would find it quite acceptable if positive integer values greater than 64 bits were rounded to 64-bit (or greater) precision values, but cutting them back to 53-bit precision values seems a very poor alternative. My gripe is not so much about how perl handles this configuration, but that this daft configuration is so widely used and accepted as valid. (I guess I should be grateful that the chosen default NV was the double precision one, and not the single precision float ;-) Of course, people are free to accept whatever they like, and thankfully it's easy enough to find modules (or to use a sanely configured perl build) such that precision is not reduced to below-integer precision when the integer value overflows integer precision. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||