Similar to the calculation modes, it might be useful to create a run-time configuration for rounding modes to affect the behavior of the round() and roundToScale() methods.
Possible Rounding Modes Include:
[x] Implementation
Deterministic Modes
[x] Ceil
[x] Floor
[x] Half Up
[x] Half Down
[x] Half Even
[x] Half Odd
[x] Half To Zero
[x] Half To Infinity
Non-Deterministic Modes
[x] Random Tie-Break
[x] Alternating Tie-Break
[x] Stochastic (this is particularly useful for Machine Learning applications)
Similar to the calculation modes, it might be useful to create a run-time configuration for rounding modes to affect the behavior of the
round()
androundToScale()
methods.Possible Rounding Modes Include: