返回 NaN 的数学库函数

通常,给出非数字参数的 Math 函数将返回 NaN。

Math.floor("a")

负数的平方根返回 NaN,因为 Math.sqrt 不支持虚数或复数 。

Math.sqrt(-1)