Go

Go

Made by DeepSource

Comparing a value against NaN even though no value is equal to NaN SCC-SA4012

Bug risk
Major

Generally, NaN is not considered equal to any number, including itself. That's because it represnts a number outside the range of representation.