07-12-2006 09:48 AM
07-12-2006 09:55 AM
07-12-2006 09:58 AM
07-12-2006 10:26 AM
07-13-2006 03:28 AM
@ Novatron & johnsold
Thank you for your comments, they are interesting for understanding.
Maybe you could help me a little bit further.
I came to this problem through a check if a value (dbl) is in range (or not).
In this case I had an input value (dbl) of 1.40 ,
a reference value (dbl) of 1.60
and a tolerance (dbl) of 12.50 (%),
meaning is 1.40 in between 1.40 and 1.80 .
The check consisted of multiply, divide, add, subtract and comparison (greater or less).
The result was that 1.40 was out of range (1.40 to 1.80) and that was a surprize for me.
Does anybody have a better idea of how to solve this task without such a surprizing effect?
Thank you!
Espelkamper
07-13-2006 03:44 AM
hi there,
when dealing with physical values you have a limited physical resolution, so i'd truncate the numbers to that resolution (lets say 2-4 digits). because the resolution of the fractional representation is much higher than your physical resolution you won't have that problems any more.
07-13-2006 04:07 AM