Bridge

MidpointRounding Enumeration

Specifies how mathematical rounding methods should process a number that is midway between two numbers.

Namespace:  System
Assembly:  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 nameDescription
Up Rounds away from zero
Down Rounds towards zero
InfinityPos Rounds towards Infinity
InfinityNeg Rounds towards -Infinity
AwayFromZeroWhen 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
ToEvenWhen 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