For example, how big
X can be such that
1 << X will represent
All answers are partially wrong - Maybe due the new ES6/ES7 specs - , read why:
we can prove that by running
Number.MAX_SAFE_INTEGER that will show a big number, then we do
log2 to confirm that the number of bits is the same :
Number.MAX_SAFE_INTEGER 9007199254740991 Math.log2(9007199254740991) 53
Here's a description of the format and what values can and can't be represented with it.
©2020 All rights reserved.