3 ms·
It is going to be less common in many fields but I can imagine 64-bit overflow is a concern in a fair few scientific number crunching situations. Also, if you
by dspillett 11y ago
It is going to be less common in many fields but I can imagine 64-bit overflow is a concern in a fair few scientific number crunching situations.
Also, if you were to use the scaled integer method of representing fractional numbers (like the fixed-point data types seen in many SQL implementations) with a scale factor of 2^32 then a 64-bit overflow is a 32-bit overflow effectively (though I'll admit that is going to be no less rare than genuinely needing the full range of 64-bit integers).
And I'm guessing all this applies to underflow as much as it is does to overflow which could be a concern for unsigned integers of any size.