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

144
Vistas
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
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