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

128
Views
Adding negative value Javascript returning small result instead of 0

Why when summing values in JavaScript/Node do certain values come back extremely small rather than 0?

(203.36) + (-203.36) = 0

(100.01 + 100.02) + ( -200.03) = 0

(14.27 + 33.29) + (-47.56) = 0

But:

61.01 + 142.35 + (-203.36) = -2.8421709430404E-14

Why is this and is there anyway to fix this rather than just ignoring extremely small numbers?

Thank You!

about 4 years ago · Juan Pablo Isaza
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!