Problem with Less than or Equal to Operator <=
Mostrar comentarios más antiguos
As shown in attached screenshot. I have two variables in my script.
- Distance_error- an local variable whose value at one point of time comes 0.001
- distance_resolution - a global variable which is constant as 1e-3.( which is of course 0.001)
Now if I compare these two varibles it doesnt give 'TRUE while if I put values a 0.001==1e-3, then the logical answer is TRUE.
How come this is possible?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Number Theory en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!