Expose float/double IsFinite, IsNormal, and IsSubNormal to Udon
BobyStar
IsFinite
can be substituted with the already exposed IsNaN
and IsInfinity
but IsSubnormal
and IsNormal
cannot be substituted accurately.Subnormal is used to check if a value is so small it starts to lose precision (a value working with values smaller than the smallest positive value of a float/double).
I'm not sure why
IsFinite
isn't exposed but IsNaN
and IsInfinity
are.Log In
BobyStar
It appears a similar post was closed due to it not existing in .NET Framework 4.x. It is available in Standard 2.1 which Unity supports but the UdonVM could be running on Framework 4.x.
It would be nice if there was at the least a helper function for IsFinite since that can assist when a graph program is hitting memory limits in the editor.