Kajika@lemmy.ml to Programmer Humor@lemmy.ml · 2 years agoFloating-point arithmeticlemmy.mlimagemessage-square23fedilinkarrow-up17arrow-down10cross-posted to: programmer_humor@programming.dev
arrow-up17arrow-down1imageFloating-point arithmeticlemmy.mlKajika@lemmy.ml to Programmer Humor@lemmy.ml · 2 years agomessage-square23fedilinkcross-posted to: programmer_humor@programming.dev
minus-squareTheFadingOne@feddit.delinkfedilinkarrow-up0·edit-22 years agoIf you use the GNU libc the feenableexcept function, which you can use to enable certain floating point exceptions, could be useful to catch unexpected/unwanted NaNs
If you use the GNU libc the
feenableexcept
function, which you can use to enable certain floating point exceptions, could be useful to catch unexpected/unwanted NaNs