|
|
| Just another Perl shrine | |
| PerlMonks |
Re^5: Largest integer in 64-bit perlby syphilis (Archbishop) |
| on May 27, 2025 at 14:24 UTC ( [id://11165139]=note: print w/replies, xml ) | Need Help?? |
|
.... but floats aren't promoted to integers. It can get a bit moot: The fact that the flags change from (NOK,pNOK) to (IOK,pIOK) suggests to me that the NV has been promoted to an IV. Or does the fact that both the IV and NV slots have been filled suggest that it's neither an IV nor an NV. Or maybe that suggests that it's both ? ... I don't know. Anyway, I'm not looking for an argument. It's just one of those things that I find a little mysterious. Other differences between floats and ints is the existence of inifinity, NaN and -0 One of my beefs with Math::BigInt is that it has a NaN and an inf: I don't regard it as all that important, but it probably shouldn't do that. I couldn't quickly get it to provide a "-0", but I did get the following weirdness: Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||