Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

I've noticed that import changes numbers slightly. For example, 0.417 becomes 0.416999999999. What is causing this to happen?

2 visualizaciones (últimos 30 días)
I've noticed that import changes numbers slightly. For example, 0.417 becomes 0.416999999999. What is causing this to happen?
  1 comentario
John D'Errico
John D'Errico el 14 de En. de 2016
Editada: John D'Errico el 14 de En. de 2016
0.417 is a number that does not exist in a BINARY floating point form, so it is stored as
0.4169999999999999817923423961474327370524406433105468750

Respuestas (1)

Star Strider
Star Strider el 14 de En. de 2016
You’re seeing floating-point approximation error.

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by