Bug in equality checks? 28.15e-3 == 28.15/1000 false
Show older comments
Why does this happen? It does not regocnize equality on 7.48e-3 == 7.48/1000, but it does on 7.47e-3 == 7.47/1000 as well. Another example below.
28.1e-3 == 28.1/1000
28.15e-3 == 28.15/1000
Accepted Answer
More Answers (1)
Image Analyst
on 15 Oct 2021
1 vote
See the FAQ:
and use ismembertol() like it recommends.
Categories
Find more on Operators and Elementary Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
