Kajika@lemmy.ml to Programmer Humor@lemmy.ml · 8 months agoFloating-point arithmeticlemmy.mlimagemessage-square10fedilinkarrow-up1332arrow-down11cross-posted to: programmer_humor@programming.dev
arrow-up1331arrow-down1imageFloating-point arithmeticlemmy.mlKajika@lemmy.ml to Programmer Humor@lemmy.ml · 8 months agomessage-square10fedilinkcross-posted to: programmer_humor@programming.dev
minus-squareTheFadingOne@feddit.delinkfedilinkarrow-up1·edit-28 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