max integer value in JavaScript

前端 未结 3 1955
孤街浪徒
孤街浪徒 2020-12-05 19:43

I\'m reading the second chapter of the book Eloquent JavaScript. The author states that:

Any whole number less than 2^52 (which is more than 10^

3条回答
  •  误落风尘
    2020-12-05 19:55

    You can think of 52 bits integer in JS, but remember that bitwise logical operators & | >> etc.. will only deal with 32 less significant bits discarding the rest.

提交回复
热议问题