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

235
Views
How do resolve problem with rounding problem in JavaScript

The second part of the number only changes if I change the first part of the number first (before the opposite) and then the second part (after the opposite). Then the methods work fine. If I start with editing the first part (the one before the period) and then edit the remainder of the division, the remainder of the division will not be zeroed.

changeInsuranceSum(insuranceSum){
  this.policyOffer.vehicle.totalValuationValue = Math.floor(Math.round(insuranceSum));
  this.policyOffer.policyOfferDetail.insuranceSum = Math.floor(Math.round(insuranceSum));
}

picture with problem: https://i.stack.imgur.com/WHBF7.png

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!