RoundingRule
Synopsis
enum RoundingRule {
NoRounding,
RoundToNearest,
RoundUp,
RoundDown
}
Defines the rounding rule of a condition.
NoRounding
No rounding.
RoundToNearest
The system will round toward the nearest neighbour. In case of equidistant neighbours the system will round towards the even neighbour. This rounding mode is also called Banker’s Rounding.
RoundUp
With this rounding mode the system will round towards the nearest neighbour unless both neighbours are equidistant, in which case the system will round up (away from zero).
RoundDown
This rounding mode rounds towards the nearest neighbour unless both neighbours are equidistant. In that case the system will round down (towards zero).