Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

135
Views
What is the highest number that I can store in JavaScript? I was reading a book it says that JavaScript uses a fixed number of bits to store a value

JavaScript uses a fixed number of bits, 64 of them, to store a single number value. There are only so many patterns you can make with 64 bits, which means that the number of different numbers that can be represented is limited. With N decimal digits, you can represent 10^N numbers. Similarly, given 64 binary digits, you can represent 2^64 different numbers, which is about 18 quintillion (an 18 with 18 zeros after it).

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Javascript traditionally stores numbers as a 64 bit floating point with a 52 bit mantissa an 11 bit exponent and the sign is 1 bit. Effectively this means that

Integers are accurate up to 15 digits. -- w3schools.com

Now with ES6 the BigInt proposal has been finalized, so you can access a second type of number when dealing with integers that may be larger than 52 bits. There also exist some libraries for operations on large numbers provided as strings.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!