11-21-2005 11:25 AM
Hi everyone,
I just wanted to throw in a small tidbit regarding functional tolerances. A new constant was added in LabVIEW 8 to the numerical palette, the so-called Machine Epsilon. This is a double-precision numeric representing the positive non-zero number with the least absolute value possible. It comes out to around 2.2E-16.
I thought it might be useful for some of these tests.
11-21-2005 01:59 PM
Hi Altenbach,
Thank you for response, but ... 32 is too small to make 2 and 1.99989998 equal in my VI. Here 32 means 4.48415509E-44 in single floating point number. Try tolerance=1000, for example.
I think denormalized and normalized are always different. Is there any example for identical denormalized and normalized?
Thanks again,
Xu
11-21-2005 02:50 PM
Yes, you're right. Sorry. 😄
11-21-2005 03:12 PM
12-24-2005 01:17 AM
Hi XU,
I was too ignorant to appreciate your solution when you posted it. Finally got around to exploring/testing your VI, but still didn't understand floats well enough to trust your solution! Finally ended-up here:
http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm
My conclusions is: You're smart!
Huge thanks for the perfect solution.
12-24-2005 01:13 PM
12-24-2005 05:01 PM