Wrong sum 50 + 0.01
이전 댓글 표시
Hi, while working on Matlab from an Excell worksheet I get this problem when adding 0.01 to 50 or to another integer between 10 and 100 (for number bigger than 100 the error does not appear in the format lon representation of the number).
Here an example of this problem:

And this is what happen for other integers:

On the other hand the value stored in the workspace is correct:

I'm using the last version of the software r2022a and this problem appears also on other pc, but it works properly when I open matlab directly and not through an Excell worksheet.
How can I fix it?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!