Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

236
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda