๐Ÿ”ฐfloating-point

๐Ÿšง under construction

JS โŸฉ value โŸฉ primitive โŸฉ number โŸฉ floating-point

The exponent is an 11-bit from 0 to 2047, in biased form: an exponent value of 1023 represents the actual zero. Exponents range from โˆ’1022 to +1023 because exponents of โˆ’1023 (all 0s) and +1024 (all 1s) are reserved for special numbers.

๐Ÿ“— Wikipedia

Floating-Point

Number.MAX_VALUE

    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
    โ”‚ Number.MAX_VALUE โ”‚
    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

      2ยนโฐยฒยณ                                               2โนโทยน
        โ†“                                                  โ†“
    = 1.1111111111111111111111111111111111111111111111111111 * 2ยนโฐยฒยณ
        โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 52-bit โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
    = 1.7976931348623157e+308
    โ‰ˆ 2ยนโฐยฒโด

NaN

ยฑInfinity & ยฑ0

Last updated

Was this helpful?