• TheFadingOne@feddit.de
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    5 months ago

    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