mround
Round to the nearest multiple of a given value.
Syntax
Section titled “Syntax”v = mround(number, multiple)Description
Section titled “Description”Returns number rounded to the nearest multiple of multiple. Sign of both arguments must match.
Examples
Section titled “Examples”mround(10, 3) % 9mround(1.3, 0.2) % 1.4