
17 Jun
2010
17 Jun
'10
5:23 p.m.
On 06/17/2010 06:28 PM, Chad Nelson wrote:
That seems to be the consensus. So far it looks like there should be four options:
* Modulus (only available on fixed-length types);
* Throw exception;
* Force to zero (for "saturation");
* Force to absolute value of number (possibly via a different function).
I suspect it'll be at least a few days before I can upload a version with that feature, because I want to make some other improvements that I've recently discovered are possible first.
I recall of a discussion here about NaN in xint. It could be used at least for NoThrow variants (especially if the 'Throw exception' option is chosen). By the way, are there +inf/-inf values for xint ? -- Maxime