round()
Rounds to the nearest integer
Syntax
y = round(x)
Arguments
| Name | Description | Range | Type | Required |
|---|---|---|---|---|
| x | number | (-∞, ∞) | real | yes |
Examples
a = round(0.1)
returns 0
a = round(0.5)
returns 1
a = round(0.9)
returns 1
a = round(-0.1)
returns 0
a = round(-0.5)
returns -1
a = round(-0.9)
returns -1
Defined in
Built in
See Also
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()