LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rounding problem , LV7

Hello
look on example. Once 1001 is rounded to 1002 but 1002 is rounded to 1004!

regards
Pawel
0 Kudos
Message 1 of 3
(2,571 Views)
Hi Pawel,

This is the correct behaviour for the "round to nearest" Function. This function Rounds the input to the nearest integer. If the value of the input is midway between two integers (for example, 1.5 or 2.5), the function returns the nearest EVEN integer.

Hope this helps,

Nick
Message 2 of 3
(2,571 Views)
Hi Nick

that is correct, I forgot "EVEN".

thanks
Pawel
0 Kudos
Message 3 of 3
(2,571 Views)