필터 지우기
필터 지우기

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 CenterFile Exchange에서 Language Fundamentals에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by