util/math.sh¶
Math util functions.
- math_calc()¶
Compute given math expression.
- math_ceil()¶
Return ceil of a number.
- math_cos()¶
Return cos(x).
- math_enabled()¶
Return true if this module is enabled.
- math_fib()¶
Return fibonacci for the given n.
- math_floor()¶
Return floor of a number.
- math_ge()¶
Return true if x >= y.
- math_gt()¶
Return true if x > y.
- math_le()¶
Return true if x <= y.
- math_log()¶
Natural logarithm of the given number.
- math_lt()¶
Return true if x < y.
- math_max()¶
Return max of two numbers (ints only).
- math_min()¶
Return min of two numbers (ints only).
- math_n_percent_n()¶
Compute one number as a percent of another number.
- math_non_zero()¶
Return non-zero value if one is non-zero.
- math_percent_of()¶
Computer x percent of the given number.
- math_pow()¶
Return pow(x, y).
- math_sin()¶
Return sin(x).
- math_sqrt()¶
Return sqrt(x).