Comparative Operator result is wrong
Mostra commenti meno recenti

I tried to run the if statement but this happens.
The result must be true(=1) in the last instruction but it returns false(=0)...
Anyone knows what is the problem???
1 Commento
Stephen23
il 12 Apr 2021
"Anyone knows what is the problem???"
The assumption that binary floating point numbers have infinite precision:
This is worth reading as well:
Risposte (3)
Steven Lord
il 12 Apr 2021
0 voti
Two numbers that are displayed the same may not represent the same stored value. See this Answers post for more information about floating point numbers.
1 Commento
여춘 박
il 12 Apr 2021
Image Analyst
il 12 Apr 2021
0 voti
Categorie
Scopri di più su Resizing and Reshaping Matrices in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!