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

330
Views
Number in Javascript changes after declaring it as a variable. Even parsing it from a string returns a wrong number

This is very weird please check it yourself.

Whenever I try to declare variable with the number 76561198322368902 it always changes to 76561198322368900 no matter what. Chrome Devtools Console Screenshot

Even when I pass the variable as a string and later parse to a number, it always changes to 76561198322368900.

I really don't know what to do. I never thought Integers were capable of such thing.

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

0

The "maximum safe integer" in JavaScript is 9007199254740991 - trying to use the number type beyond this can yield unpredictable results.

Use the BigInt type if you need a bigger number.

about 4 years ago · Juan Pablo Isaza Report

0

You just exeeded the Number.MAX_SAFE_INTEGER

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!