WOLFRAM SYSTEM MODELER

round

Round to nearest Integer

Wolfram Language

In[1]:=
SystemModel["PlanarMechanics.Utilities.Functions.round"]
Out[1]:=

Information

Returns the input argument rounded to the nearest Integer. Examples:

round(2.4)  ->  2
round(2.6)  ->  3
round(-1.3) -> -1
round(-1.6) -> -2

Syntax

i = round(v)

Inputs (1)

v

Type: Real

Description: Real number

Outputs (1)

i

Type: Integer

Description: Real number v rounded to nearest integer

Revisions

DLR logo Developed 2010 at the DLR Institute of System Dynamics and Control