2 ms·
"The only good NaN is a signalling NaN." Delphi's RTL set the FPU flags to default to signalling NaNs, causing some havoc when linked against C and C++ librari
by barrkel 9y ago
"The only good NaN is a signalling NaN."
Delphi's RTL set the FPU flags to default to signalling NaNs, causing some havoc when linked against C and C++ libraries (usually gaming libraries) that assumed otherwise.
You usually don't want a divide by zero poisoning your data, for the same reasons you don't want unnoticed nulls infecting your data structures. Exceptions can be made for scoped blocks of code, but it's not a good default.