Use constants in formula expressions
In AWS IoT SiteWise, you can use constants in your expressions and formulas to represent fixed values or predefined parameters. Constants can be used in various contexts, such as data transformations, alarm conditions, or visualization calculations. By using constants, you can simplify your expressions and make them more readable and maintainable.
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 |
---|---|
|
The number pi ( |
|
The number e: |
|
Equivalent to the number 1. In AWS IoT SiteWise, Booleans convert to their number equivalents. |
|
Equivalent to the number 0. In AWS IoT SiteWise, Booleans convert to their number equivalents. |
|
Equivalent to no value. You can use this constant to output nothing as the result of a conditional expression. |