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

142
Views
Array number values is getting round off in javascript
newjsonData.sort(function(a, b) {
  return (a.Id - b.Id)
});
oldjsonData.sort(function(a, b) {
  return (a.Id - b.Id)
})

In above function I am sorting the json value based on ID and one of the node contains float value which is getting round off.

I am getting this 1.1103391379964032864981076624 value from response and it is getting round off to this 1.1103392. I don't want round off value I required the original one

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!