NTiRoundOption Enum.

Description.

The NTiRoundOption enum represents the different ways to round floating point real numbers that have too many decimal places for .NET.

Values.

Key Value Description
HalfEven 0 Round to nearest digit. If equidistant, round to the nearest even digit.
HalfUp 1 Round to nearest digit. If equidistant, round up.
Down 2 Round to nearest lower digit. This is the same as truncation.
Ceiling 3 Round towards +infinity.
Floor 4 Round towards -infinity.
HalfDown 5 Round to nearest digit. If equidistant, round down.
Up 6 Round to nearest higher digit.