Kajika@lemmy.ml to Programmer Humor@lemmy.ml · 9 months agoFloating-point arithmeticlemmy.mlimagemessage-square5fedilinkarrow-up15arrow-down10cross-posted to: programmer_humor@programming.dev
arrow-up15arrow-down1imageFloating-point arithmeticlemmy.mlKajika@lemmy.ml to Programmer Humor@lemmy.ml · 9 months agomessage-square5fedilinkcross-posted to: programmer_humor@programming.dev
minus-squareTheFadingOne@feddit.delinkfedilinkarrow-up0·edit-29 months 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