Example Code

Rounding Numbers to Various Decimal Places in LabVIEW

Code and Documents

Attachment

LabVIEW only readily supports rounding numbers to integer values. For example, LabVIEW rounds the number 543.21 to 543.00.

This VI shows how to round numbers to values other than integers. For example, you can round the number 543.21 to 543.20 or 540.00 by choosing which decimal place you want to round to.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
dattu78
Member
Member
on

thanks, very helpfull.

Contributors