Using constants in formula expressions - Amazon IoT SiteWise
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).

Using constants in formula expressions

You can use the following common mathematical constants in your expressions. All constants are case insensitive.

Note

If you define a variable with the same name as a constant, the variable overrides the constant.

Constant Description

pi

The number pi (π): 3.141592653589793

e

The number e: 2.718281828459045

true

Equivalent to the number 1. In Amazon IoT SiteWise, Booleans convert to their number equivalents.

false

Equivalent to the number 0. In Amazon IoT SiteWise, Booleans convert to their number equivalents.

none

Equivalent to no value. You can use this constant to output nothing as the result of a conditional expression.