roundToNearest
-
function
-
Returns a value rounded to the nearest multiple of another value.
-
Examples: +
put roundToNearest(44.7, 12) —> 48
put 12.43 rounded to the nearest 0.05 —> 12.45
-
Related: round, rounded
function
Returns a value rounded to the nearest multiple of another value.
Examples: +
put roundToNearest(44.7, 12) —> 48
put 12.43 rounded to the nearest 0.05 —> 12.45
Related: round, rounded