DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

subtraction error

Why does Diadem calculate 0.005-0.00499998 to be equal to 1.99999999998812E-08 rather than 2E-08 like it should be?  I think this is the root cause why some of my calculations are off by about 10 nanoseconds.  

0 Kudos
Message 1 of 3
(5,621 Views)

Take a look at the following example. You can round up using script.

https://decibel.ni.com/content/docs/DOC-25809

National Instruments
Applications Engineer
0 Kudos
Message 2 of 3
(5,609 Views)

Hi Russell,

 

DIAdem is simply showing you the full DBL precision of that number.  You get the same effect in LabVIEW if you set the digits to display high enough (see attachment).  What time issues are you having?

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 3 of 3
(5,567 Views)