フィルターのクリア

Problem decimals operations Matlab

3 ビュー (過去 30 日間)
Martin
Martin 2013 年 8 月 27 日
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!

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 8 月 27 日
  1 件のコメント
Martin
Martin 2013 年 8 月 27 日
Thanks, sorry for not seeing this before. :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLanguage Fundamentals についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by