How can I check whether a float variable is NaN or not? e.g.
math.Log(1.0) // not NaN
math.Log(-1.0) // NaN
How can I check whether a float variable is NaN or not? e.g.
math.Log(1.0) // not NaN
math.Log(-1.0) // NaN
Use math.IsNaN(...)
for that: playground