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

122
Vistas
Number rounding off issue JS

When I do number formatting using Javascript, after 15 digits it's rounding off the number. As we are working on currency, don't want this rounding to happen. We are using angular as our client-side lib, tried using angular format number and format currency as well, but didn't help. Can anyone suggest any way to fix this issue?

We need the number to be formatted as per the current locale(like if the user is inputting 10000, we need to format it as per the locale set to 10,000) but don't want this rounding issue to happen for big numbers(those with a value above - 9999999999999999).

const number = 9999999999999999;
console.log(number.toLocaleString('en-US'));
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