How JavaScript represents numbers

1 Answer

0 votes
/*

JavaScript represents numbers using the 64-bit floating-point format 
defined by the IEEE 754 standard.

The IEEE 754 standard specifies a binary64 as having:

- Sign bit: 1 bit
- Exponent: 11 bits
- Significand precision: 53 bits (52 explicitly stored)

*/

console.log(Number.MIN_VALUE);
 
console.log(Number.MAX_VALUE);
 
     
     
/*
run:
     
5e-324
1.7976931348623157e+308
     
*/

 



answered Nov 15, 2024 by avibootz
...