Table Of Contents

Round to Nearest (G Dataflow)

Last Modified: February 5, 2019

Expresses the input to the nearest round integer.



An input to this operation.

This input supports waveforms and any data type that contains only numbers, such as scalar numbers, arrays or clusters of numbers, and arrays of clusters of numbers.


nearest integer value

The resulting nearest integer to the input value.

Complex Numbers

When x is complex, this node returns a complex number defined by the nearest integer to the real and imaginary parts of x. The following equation defines nearest integer value:

nearest integer value(x) = nearest integer value(a) + i * nearest integer value(b)

Rounding Behavior

If the value of the input is midway between two integers, this node returns the nearest even integer.

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


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

Where This Node Can Run:

Desktop OS: Windows

FPGA: All devices (only within an optimized FPGA VI)

Web Server: Supported in VIs that run in a web application

Recently Viewed Topics