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

91
Views
0.018885 % 0.000005 not 0 javascript

The remainder 0.018885 % 0.000005 is not equal to 0. Explain how this happens and how to handle such cases. How can i catch this case? My solution is to use regular expressions to determine the number of decimal places, then cast the float to an integer, and finally find the remainder. In this case, everything works correctly, but I'm wondering how this can be solved in another way, and I'm not sure that such a solution will work for every case. 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!