Round To Nearest

Description

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.

 

Documentation illustration (illustration unavailable in the archive).

Input parameters

 

Documentation illustration (illustration unavailable in the archive). x : class, n-dimensional tensor.

Output parameters

 

Documentation illustration (illustration unavailable in the archive). nearest integer value : class, the resulting nearest integer to number.

Examples

All these examples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install Accelerator library to run it).

Documentation illustration (illustration unavailable in the archive).