Why is 0 less than Number.MIN_VALUE in JavaScript?

前端 未结 4 1698
孤独总比滥情好
孤独总比滥情好 2021-01-03 20:24

Using Node.js, I\'m evaluating the expression:

0 < Number.MIN_VALUE

To my surprise, this returns true. Why is that? And: Ho

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-03 21:02

    Number.MIN_VALUE is equivalent to 5e-324 , which is greater than 0.

提交回复
热议问题