Appendix 1: Formula Reference
The following is a list of valid operators that can be added manually or added using the operator list.

Operator |
Description |
---|---|
Addition |
Returns the sum of A plus B. |
Subtraction |
Returns the difference of A minus B. |
Multiplication |
Returns the product of A multiplied by B. |
Division |
Returns the quotient of A divided by B. |
Modulus |
Returns the remainder of the integer division of A divided by B. |
Power |
Returns X raised to the Y power. |
Log base 10 |
Returns the log base 10 of X. |
Natural Log |
Returns the natural log of X. |
Square Root |
Returns the square root of X. |
Square |
Returns the square of X. |
Absolute value |
Returns the absolute value of X. |
Minimum |
Returns the minimum of X and Y. |
Maximum |
Returns the maximum of X and Y. |
Floor |
Returns the floor of X, which is the nearest whole number less than X. |
Ceiling |
Returns the ceiling of X, which is the nearest whole number greater than X. |
Truncate |
Returns the truncated value of X, which is the integer portion of X. |
Sign |
Returns 1 for X greater than 0, -1 for X less than 0, and 0 for X equal to 0. |

Operator |
Description |
---|---|
Sine |
Returns the sine of X, where X is expressed in radians. |
Cosine |
Returns the cosine of X, where X is expressed in radians. |
Tangent |
Returns the tangent of X, where X is expressed in radians. |
Arcsine |
Returns the inverse sine of X, expressed in radians. |
Arccosine |
Returns the inverse cosine of X, expressed in radians. |
Arctangent |
Returns the inverse tangent of X, expressed in radians. |
Hyperbolic sine |
Returns the hyperbolic sine of X. |
Hyperbolic cosine |
Returns the hyperbolic cosine of X. |
Cotangent |
Returns the hyperbolic tangent of X. |

Operator |
Description |
---|---|
Equal to |
Returns true when A equals B and false otherwise. |
Not equal |
Returns true when A does not equal B and false otherwise. |
Greater than |
Returns true when A is greater than B and false otherwise. |
Less than |
Returns true when A is less than B and false otherwise. |
Greater than or equal to |
Returns true when A is greater than or equal to B and false otherwise. |
Less than or equal to |
Returns true when A is less than or equal to B and false otherwise. |
Is Null |
Returns true when X is undefined or missing and false otherwise. |

Operator |
Description |
---|---|
If then else |
Returns the result Y when X is true and Z otherwise. True is any nonzero result or boolean expression that returns true. |
And |
Returns the result of A and B, where both A and B are evaluated as boolean expressions. |
Or |
Returns the result of A or B, where both A and B are evaluated as boolean expressions. |
Not |
Returns the logical opposite of the boolean value appearing to the right. True will become false, and vice versa. |
If Null |
Returns Y if X is undefined or null and X otherwise. |
Stop |
The stop command must appear alone and prevents the calculation from continuing beyond the formula's start time. |

Operator |
Description |
|
---|---|---|
Pi |
Pi is the approximate value for the constant Pi. |
|
Null |
Is an undefined value and is sometimes used to suppress bad data. Example: If ([Pressure] < 0, Null, [Pressure]). |
|
CFStoMGD |
Numeric conversion from cubic feet/second to millions of gallons per day. |
|
e |
E is the approximate value for the natural log base value. |
|
LastResult |
Use the value from the previous interval in the next interval of the calculation, allowing for many useful calculations.
|