Thank you SomptingGuy,
It seems there is no a basic solution to this problem, so I will try to write my code in a different way, where it could be possible to store the values in different format to double, or using the round () function.
Thank you very much.
In the other hand my question is: Should I trust in an application that gets this output??:
floor (3.3-2.2-1.1)
ans =
-1
I think it is a basic operation, and it makes it wrong.
Thank you very much electricpete. Your solution works, but I prefer a more elegant one, because it is going to be a application to distribute. Thus, the operation that I do where I have that problem is more complex than 3.3-2.2-1.1, although it is the same problem, so if I use your solution the...
Hello everybody, I hope somebody can help me.
If I write in the console the following then I get:
>> 3.3-2.2-1.1
ans =
-4.4409e-016
Instead of 0. Situations like that are making some important accuracy errors in my applications. How could I get a 0 using the double format please??
Thank...