MU - math utilities

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

FormulaDescription
$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(acos, 1)$Inverse Cosine of 1
$mu(asin, 1)$Inverse Sine of 1
$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
$mu(h2d, 5F)$Converts an hex number to decimal
$mu(d2h, 123)$Converts a decimal number to hex



Privacy Policy