abs(Decimal) - Amazon IoT Analytics
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

For similar capabilities to Amazon IoT Analytics, explore Amazon Kinesis, Amazon S3, and Amazon Athena. These services provide additional scalability and flexibility to meet your evolving analytics requirements. Learn how here.

abs(Decimal)

Returns the absolute value of a number.

Examples: abs(-5) returns 5.

Argument type Result

Int

Int, the absolute value of the argument.

Decimal

Decimal, the absolute value of the argument

Boolean

Undefined.

String

Decimal. The result is the absolute value of the argument. If the string cannot be converted, the result is Undefined.

Array

Undefined.

Object

Undefined.

Null

Undefined.

Undefined

Undefined.