LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

precision of a variable

how can I do to modify the precision of a variable.

In ex: I have an "extended precision" variable in the output of a "formula
node" and before I put it into another formula node, I wish to round it to
two digit of precision (x,xx).

How can I do?
Can you help me?

Thanks
0 Kudos
Message 1 of 2
(2,237 Views)
There are several ways to do this, e.g. format to string and back. I probably would multiply by 100, round to nearest integer, then divide by 100. (see attached code image).
0 Kudos
Message 2 of 2
(2,237 Views)