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!