dotConnect for DB2 Documentation
Devart.Data.DB2.DB2Types Namespace / DB2RoundingMode Enumeration

In This Topic
    DB2RoundingMode Enumeration
    In This Topic
    Specifies the rounding mode to use when creating a DB2DecimalFloat structure from a string using the DB2DecimalFloat.Parse method.
    Syntax
    'Declaration
     
    Public Enum DB2RoundingMode 
       Inherits System.Enum
       Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
    Members
    MemberDescription
    CeilingRound toward positive infinity. If all of the discarded digits are zero or if the sign is negative, the result is unchanged. Otherwise, the result coefficient should be incremented by 1 (rounded up).
    DownRound toward 0 (truncation). The discarded digits are ignored.
    FloorRound toward negative infinity. If all of the discarded digits are zero or if the sign is positive, the result is unchanged. Otherwise, the sign is negative and the result coefficient should be incremented by 1 (rounded up).
    HalfEvenRound to nearest; if equidistant, round down. If the discarded digits represent greater than half (0.5) of the value of a one in the next left position, then the result coefficient should be incremented by 1 (rounded up). Otherwise (if the discarded digits are 0.5 or less), the discarded digits are ignored.
    HalfUpRound to nearest; if equidistant, round up. If the discarded digits represent greater than or equal to half (0.5) of the value of a one in the next left position then the result coefficient should be incremented by 1 (rounded up). Otherwise, the discarded digits are ignored.
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             Devart.Data.DB2.DB2Types.DB2RoundingMode

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also