round(Decimal)
Rounds the given Decimal
to the nearest Int
. If the
Decimal
is equidistant from two Int
values (for example, 0.5), the
Decimal
is rounded up.
Examples:
Round(1.2)
= 1
Round(1.5)
= 2
Round(1.7)
= 2
Round(-1.1)
= -1
Round(-1.5)
= -2
Argument type | Result |
---|---|
|
The argument |
|
|
|
|
Other Value |
|