Table Of Contents

Round to Nearest (G Dataflow)

Last Modified: September 28, 2017

Rounds the input to the nearest integer.

connector_pane_image
datatype_icon

x

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.

datatype_icon

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.

spd-note-note
Note  

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: DAQExpress does not support FPGA devices

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


Recently Viewed Topics