Vocabularymath.
extrasInputsOutputsWord descriptionRounds
x via
ceiling if
x is greater than zero, and
floor if x is less than zero.
ExamplesUSING: math.extras prettyprint ;
0.5 round-away-from-zero .
1.0
USING: math.extras prettyprint ;
-0.5 round-away-from-zero .
-1.0
See alsoceiling,
floorDefinitionMethods