Why isn't NaN finite?

后端 未结 5 606
萌比男神i
萌比男神i 2021-01-13 17:34

Testing the isFinite function I see that NaN is an infinite number (even if it\'s not a number :-)).

5条回答
  •  孤城傲影
    2021-01-13 18:08

    Because an infinite number... is still a number. NaN isn't a number in any possible sense.

    It's like an error in Matrix.

提交回复
热议问题