Round To Nearest function

From LabVIEW Wiki
Jump to: navigation, search
Object information
Owning palette(s) Numeric palette
Type Function
Requires Basic Development Environment
Icon Functions - Numeric Palette - Round To Nearest.png

The Round To Nearest function rounds the input to the nearest integer. If the value of the input is midway between two integers, the function returns the nearest even integer.

For example, if number is 1.5 or 2.5, nearest integer value is 2.

Note: IEEE standards determine the rounding method for this function. This method produces more accurate values with no positive or negative bias because it does not round all integers in the same direction.

The connector pane displays the default data types for this polymorphic function.



Version Change(s)
LabVIEW 2018 More info to come.

See Also

External Links