Math Operators
There are various Math operators support on PIM's Dashboard
Addition Operator (sum)
Multiply Operator (mul)
Subtraction Operator(diff)
Divide Operator(divide)
Modulo Operator ( modulo )
Ceil Operator ( ceil )
Floor Operator ( floor )
Absolute Operator ( abs )
clamp Operator ( clamp )
numberFormat Operator
1. Addition Operator (sum)
when you want to sum couple of numbers than you can use sum operator
Arguments
This Operator can take upto 255 arguments
Example
2. Multiply Operator (mul)
when you want to multiply couple of numbers than you can use multiply operator
Arguments
This Operator can take upto 255 arguments
Example
3. Subtraction Operator (diff)
used to perform subtraction operation
Arguments
ArgumentsThis operator will take two arguments and both arguments are required
Example
4. Divide Operator (divide)
used to perform divide mathematical operation
Arguments
This operator will take two arguments and both arguments are required
Example
5 . Modulo operator
Returns the remainder of division of first number by second
Arguments
This operator will take two number arguments
Example
6 . Ceil operator
Rounds a number up to the nearest integer
Arguments
It will take one number argument
Example
7. Floor Operator
Rounds a number down to the nearest integer
Arguements
it will take one number arguement
Exampe
8 . Absolute Operator
Returns the absolute value of a number
Create a page state
for this example we created a page state variable var of type number
Enter an initial value to your state
we entered -10 as our intial value for our page state
Argument
it will take a page state arguement
9 . Clamp Operator
Restricts a value to be within the specified range [min, max]
Argument
10 . number format
Formats a number using the specified format. Defaults to '##,##,###
Arguments
requires a number and a format
Example
Last updated