roundToNearest
-
function
-
Returns a value rounded to the nearest multiple of another value.
-
Examples: +
put roundToNearest(44.7, 12) —> 48put 12.43 rounded to the nearest 0.05 —> 12.45 -
Related: round, rounded
note
This page is under construction: it has not been reviewed for completeness.