Vocabularymath.
functionsInputsOutputsWord descriptionOutputs the number closest to
x, rounded to a multiple of
step.
NotesThe result is not necessarily an integer.
ExamplesUSING: math.functions prettyprint ;
1.23456 0.25 round-to-step .
1.25
USING: math.functions prettyprint ;
12345.6789 100 round-to-step .
12300.0
Definition