don't NaN & infinities hide FP errors
kartik
kartick_vaddadi at yahoo.com
Wed Nov 17 04:30:33 EST 2004
Since Python floats are implemented using C doubles, assuming IEEE 754
compliance, certain operations should result in NaN or infinity. Don't
such special values hide errors? Would we want our variables to be in
such states? I feel it would be better if a floating point division by
zero (or other actions that produce NaNs or infinities) throws an
exception, just like an integer divide by zero.
Am I right?
More information about the Python-list
mailing list