functionround
Round to nearest Integer
Extends from Modelica.Icons.Function (Icon for functions).
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
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | v | Real number |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | i | Real number v rounded to nearest integer |
Revisions
Developed 2010 at the DLR Institute of System Dynamics and Control