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

180
Vistas
multiplication error of JavaScript and then

50000 * 1.1 is followed by a decimal point.
50000 + (50000 * 0.1) calculated correctly.

I found

  1. There are limitations when expressing numbers with a computer.
  2. When converting a decimal number to a binary phenomenon that an infinite decimal number is generated.
  3. When expressing an infinite number as a finite number, there are values that are exceeded or lost, resulting in a calculation error.

And there are workarounds such as toFixed(), Math object method, and library.
I understand a bit, but I have a question.

Question 1.
If I use methods such as toFixed(), Math object methods, libraries, etc., do I get 100% reliability without any errors?
For example, where calculations are important, such as in a bank, which method do you use?

Question 2.
50000 + (50000 * 0.1) gave no error.
However, unless a separate calculation error resolution method is used, When the number is changed, is there a there a calculation error?

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