2 ms·
It's an easy way to return nan and set FE_INVALID. If you're not worried about floating point exceptions you can just return NaN directly. Idk how much C# even
by hurrrrrrrr 4y ago
It's an easy way to return nan and set FE_INVALID. If you're not worried about floating point exceptions you can just return NaN directly. Idk how much C# even guarantees about the floating point operations and if it's applicable there.
https://en.cppreference.com/w/cpp/numeric/fenv/FE_exceptions https://en.cppreference.com/w/cpp/numeric/fenv/FE_exceptions