MidpointRounding Enumeration
Specifies how mathematical rounding methods should process a number that is midway between two numbers.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[ExternalAttribute] [EnumAttribute] [NameAttribute] public enum MidpointRounding
<ExternalAttribute> _ <EnumAttribute> _ <NameAttribute> _ Public Enumeration MidpointRounding
[ExternalAttribute] [EnumAttribute] [NameAttribute] public enum class MidpointRounding
Members
Member name | Description | |
---|---|---|
Up | Rounds away from zero | |
Down | Rounds towards zero | |
InfinityPos | Rounds towards Infinity | |
InfinityNeg | Rounds towards -Infinity | |
AwayFromZero | When a number is halfway between two others, it is rounded toward the nearest number that is away from zero. | |
TowardsZero | Rounds towards nearest neighbour. If equidistant, rounds towards zero | |
ToEven | When a number is halfway between two others, it is rounded toward the nearest even number. | |
Ceil | Rounds towards nearest neighbour. If equidistant, rounds towards Infinity | |
Floor | Rounds towards nearest neighbour. If equidistant, rounds towards -Infinity |