module {
public func isNaN(v:Float): Bool {
return ((v < 0.000) == false) and ((v > 0.000) == false)
};
public func isInfinite(v:Float): Bool {
return v > 1.8e307
}
}
This is the method I wrote to judge NaN and Infinity, what’s wrong with it. . if so. Please point out where I am wrong