End of support notice: On December 15, 2025, Amazon will end support for Amazon IoT Analytics. After December 15, 2025, you will no longer be able to access the Amazon IoT Analytics console, or Amazon IoT Analytics resources. For more information, see Amazon IoT Analytics end of support.
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 |
|