Vocabularymath.
functionsInputsOutputsWord descriptionOutputs the number closest to
x, rounded to
n decimal places.
NotesThe result is not necessarily an integer.
ExamplesUSING: math.functions prettyprint ;
1.23456 2 round-to-decimal .
1.23
USING: math.functions prettyprint ;
12345.6789 -3 round-to-decimal .
12000.0
Definition