bigfloat icon indicating copy to clipboard operation
bigfloat copied to clipboard

Consider changing flag behaviour on NaN propagation.

Open mdickinson opened this issue 11 years ago • 1 comments

MPFR sets the nan flag even when propagating NaNs; this behaviour is different from the IEEE 754 specification, where propagating NaNs doesn't set the NaN flag. We should consider changing the behaviour for BigFloat.

mdickinson avatar Aug 02 '14 10:08 mdickinson

Just an update from gmpy2 - I'm experimenting with a context flag called quiet_nan. If True, propagating NaN does not set the NaN flag. If False, the behavior of the MPFR library is maintained. I'm undecided on the default.

casevh avatar Nov 11 '15 02:11 casevh