Kajika@lemmy.ml to Programmer Humor@lemmy.ml · 8 个月前Floating-point arithmeticlemmy.mlimagemessage-square25fedilinkarrow-up1724arrow-down15cross-posted to: programmer_humor@programming.dev
arrow-up1719arrow-down1imageFloating-point arithmeticlemmy.mlKajika@lemmy.ml to Programmer Humor@lemmy.ml · 8 个月前message-square25fedilinkcross-posted to: programmer_humor@programming.dev
minus-squareTheFadingOne@feddit.delinkfedilinkarrow-up5·edit-28 个月前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
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