isnan ("is not a number") function

bool isnan(value)
bool[] isnan(values)

value float

values float[]

Returns true if value is not a number, and false otherwise. For arrays, the function is applied element-wise and returns a new array with the boolean results.

Related

Examples

isnan(1)
# result = false

isnan(ln(-1))
# result = true

isnan(float("a"))
# result = true

isnan([1, ln(-1)])
# result = [false, true]