LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to multiply very small numbers withot round it to zero ?

Solved!
Go to solution

Hi  everyone

When I multiply  tow values one of them have very small numbers (import from Excel) labview round  them to zero . How would i stop it from happenning?

 

Thank you.

0 Kudos
Message 1 of 12
(4,536 Views)

We cannot tell from the picture, but is it also zero if you use a scientific display format?

 

(Please attach the VI and also include a typical data file)

0 Kudos
Message 2 of 12
(4,526 Views)

It's impossible to debug a picture.  Attach your VI and also the text file that contains your data.  That way we can see how small these numbers actually are.  LabVIEW doesn't just round small numbers to zero, so I think you've got something else going wrong in your program, either the way it is reading the text file, or the way you are displaying your results.

0 Kudos
Message 3 of 12
(4,521 Views)

Hi weaam,

 

please provide an example for your problem!

LabVIEW will not round to zero unless the numbers are VERY small in the order of 1E-323 for DBL values…

 

What formatting did you set for the array indicator you marked in your image?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 12
(4,520 Views)

If the values where really zero, all values after it would also be zero ("-10000000*V*exp(") or one ("p(D)" and "TCP"). 0X-10000000=0, exponential(zero)=1, 1*1=1...

 

It just shows as zero's, since the default formatting is not useful in your situation (like the others mentioned).

0 Kudos
Message 5 of 12
(4,433 Views)

altenbach , RavensFan and GerdW
thank you very much
the result is zero  when I use a scientific display format