less than against less or equal than
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ioannis Vourvachakis
am 2 Nov. 2021
Kommentiert: Ioannis Vourvachakis
am 2 Nov. 2021
Can someone tell me what is going on? Thank you
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/787595/image.png)
0 Kommentare
Akzeptierte Antwort
Stephen23
am 2 Nov. 2021
Bearbeitet: Stephen23
am 2 Nov. 2021
"Can someone tell me what is going on"
Exactly as the comparison tells you, the value stored in that variable is greater than the literal 0.3060.
Such cases are easy to demonstrate:
A = 0.3060 + eps(1)
A > 0.3060
Read more about binary floating point numbers:
This is worth reading as well:
2 Kommentare
Steven Lord
am 2 Nov. 2021
You can see this effect in real life too. Search Google or your favorite search engine for "Bill Gates net worth". When I did that Google told me he was worth 136.1 billion USD. Does that mean his net worth is exactly 136 billion 100 million USD and not a penny more? No. He could have an extra million or ten in his portfolio that Google didn't display.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!