How to check for NaN in golang
Use math.IsNaN
:
IsNaN reports whether f is an IEEE 754 “not-a-number” value.
Use math.IsNaN(...)
for that: playground
Use math.IsNaN
:
IsNaN reports whether f is an IEEE 754 “not-a-number” value.
Use math.IsNaN(...)
for that: playground