Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Round To Nearest

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Rounds the input to the nearest integer.

If the value of the input is midway between two integers (for example, 1.5 or 2.5), the function returns the nearest even integer (2). The connector pane displays the default data types for this polymorphic function.

Example

number can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
nearest integer value is the resulting nearest integer to number. If the input is a time stamp value, the function rounds to the nearest second.

Example

Refer to the Add - Various Uses VI in the labview\examples\general\functions\Numeric directory for an example of using the Round To Nearest function.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit