Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

237
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda