Math library functions that return NaN

suggest change

Generally, Math functions that are given non-numeric arguments will return NaN.

Math.floor("a")

The square root of a negative number returns NaN, because Math.sqrt does not support imaginary or complex numbers.

Math.sqrt(-1)

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents