The following functions are supported in the equations you create.
- min(<expression1>, <expression2>): return the minimum of the two expressions.
- max(<expression1>, <expression2>): return the maximum of the two expressions.
- div(<expression1>, <expression2>): divide expression 1 by expression 2 and return the value rounded up at one-half.
- floor(<expression1>, <expression2>): divide expression 1 by expression 2 and return the largest integer not greater than the result.
- ceil(<expression1>, <expression2>): divide expression 1 by expression 2 and return the largest integer not less than the result.
The div, floor, and ceil functions will return an integer value. The expression div(1, 4) will divide 1 by 4 and return 0. 1/4 = .25 which is rounded to zero. As a result, 4 * div(1/4) = 0 and not 1
The following example should help to make this clear:
| Expression |
Div |
Floor |
Ceil |
| 1/4 (0.25) |
0 |
0 |
1 |
| 2/4 (0.5) |
1 |
0 |
1 |
| 3/4 (0.75) |
1 |
0 |
1 |
4/4 (1) |
1 |
1 |
1 |