MU: Math Utilities (floor, ceil, sqrt, min, max)

Syntax

mu(var, [default])

Arguments

  • var: Function (one of ceil, floor or sqrt)
  • default: One or more values depending on the function

Examples

Formula Description
$mu(ceil, 3.14)$ Will return ceil of 3.14
$mu(floor, 3.80)$ Will return floor of 3.80
$mu(sqrt, 2)$ Will return square root of 2
$mu(round, 2.80)$ Will round 2.80 to the nearest integer
$mu(round, 2.858284, 2)$ Will round number to 2 decimals
$mu(min, 1, 3)$ Will return min between 1 and 3
$mu(max, 1, 3)$ Will return max between 1 and 3
$mu(abs, -1)$ Will return absolute value of -1
$mu(cos, 90)$ Cosine of 90 degrees
$mu(sin, 90)$ Sine of 90 degrees
$mu(tan, 45)$ Tangent of 45 degrees
$mu(atan, 45)$ Inverse Tangent of 45 degrees
$mu(log, 5)$ Logarithm of 5
$mu(pow, 2, 3)$ 2 raised to the power of 3
$mu(ln, 5)$ Natural logarithm of 5
$mu(rnd, 10, 100)$ Random number between 10 and 100
Was this article helpful?
0 out of 0 found this helpful