Problem decimals operations Matlab

3 Ansichten (letzte 30 Tage)
Martin
Martin am 27 Aug. 2013
Hi!
I have a small problem on Matlab, while adding simple decimal numbers. It turns out that a small residual number appears:
t = [0.3 0.6 0.9];
t(1) + t(2) - t(3)
ans =
-1.110223024625157e-16
How could I solve this?
Thanks!

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 27 Aug. 2013
  1 Kommentar
Martin
Martin am 27 Aug. 2013
Thanks, sorry for not seeing this before. :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Object Identification finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by