Round
Returns nearest integer value from argument. When half-way (ex: 0.5 or -1.5), will choose, among the two nearest integers, the one with the greater absolute value (i.e. rounds away from zero).
- Parameters:
-
| x | the floating-point value to round. |
- Returns:
- A floating point value containing an integer.
- Note:
- A floating-point point value is returned to avoid overflow of integer types.
(-2) = -2