dotConnect for DB2 Documentation
Devart.Data.DB2.DB2Types Namespace / DB2Decimal Structure
Fields Properties Methods

In This Topic
    DB2Decimal Structure Members
    In This Topic

    The following tables list the members exposed by DB2Decimal.

    Public Constructors
     NameDescription
    Public ConstructorInitializes a new instance of the DB2Decimal structure with the specified System.Decimal value.  
    Top
    Public Fields
     NameDescription
    Public Fieldstatic (Shared in Visual Basic)Represents the maximum precision, which is 31.  
    Public Fieldstatic (Shared in Visual Basic)Represents the maximum scale, which is 31.  
    Public Fieldstatic (Shared in Visual Basic)Represents the maximum value of a DB2Decimal structure.  
    Public Fieldstatic (Shared in Visual Basic)Represents the minimum value of an DB2Decimal structure.  
    Public Fieldstatic (Shared in Visual Basic)Represents a null value that can be assigned to the Value property of a DB2Decimal structure.  
    Top
    Public Properties
     NameDescription
    Public PropertyIndicates whether the Value property of the DB2Decimal is Null.  
    Public PropertyGets the precision of the current DB2Decimal object (the number of significant figures).  
    Public PropertyGets the scale of the DB2Decimal value.  
    Public PropertyGets the value of the DB2Decimal structure. System.OverflowException is thrown in case if the precision of the DB2Decimal value is greater than what a .NET decimal type can contain.  
    Public PropertyGets the value of the DB2Decimal structure. If the precision of the DB2Decimal value is greater than what a .NET decimal type can contain, the less significant digits are lost and no exception is thrown.  
    Top
    Public Methods
     NameDescription
    Public Methodstatic (Shared in Visual Basic)Gets the absolute value of the DB2Decimal.  
    Public Methodstatic (Shared in Visual Basic)Adds two DB2Decimal values.  
    Public Methodstatic (Shared in Visual Basic)Returns the smallest integer number greater than or equal to the specified DB2Decimal number.  
    Public MethodOverloaded. Compares the current DB2Decimal object to the specified object and returns an integer that represents their relative values.  
    Public Methodstatic (Shared in Visual Basic)Divides one DB2Decimal value by another.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Compares two DB2Decimal structures to determine if they are equal.  
    Public Methodstatic (Shared in Visual Basic)Returns the largest integer number less than or equal to the specified DB2Decimal number.  
    Public MethodGets a hash code for the DB2Decimal instance.  
    Public Methodstatic (Shared in Visual Basic)Determines whether the first of two DB2Decimal values is greater than the second.  
    Public Methodstatic (Shared in Visual Basic)Determines whether the first of two DB2Decimal values is greater than or equal to the second.  
    Public Methodstatic (Shared in Visual Basic)Determines whether the first of two DB2Decimal values is less than the second.  
    Public Methodstatic (Shared in Visual Basic)Determines whether the first of two DB2Decimal values is less than or equal to the second.  
    Public Methodstatic (Shared in Visual Basic)Multiplies two DB2Decimal structures.  
    Public Methodstatic (Shared in Visual Basic)Determines whether two DB2Decimal values are not equal.  
    Public Methodstatic (Shared in Visual Basic)Converts a System.String representation of a number to its DB2Decimal equivalent.  
    Public Methodstatic (Shared in Visual Basic)Subtracts one DB2Decimal structure from another.  
    Public MethodConverts the current DB2Decimal structure to a System.String.  
    Top
    Public Operators
    Calculates the sum of the two DB2Decimal structures.
    Divides one DB2Decimal value by another.
    Determines whether two DB2Decimal values are equal.
    Converts the DB2Decimal parameter to System.Decimal.
    Compares two DB2Decimal structures to determine if the first is greater than the second.
    Compares two DB2Decimal structures to determine if the first is greater than or equal to the second.
    Overloaded. Converts the System.Decimal parameter to the DB2Decimal.
    Determines whether two DB2Decimal values are not equal.
    Compares two DB2Decimal structures to determine if the first is less than the second.
    Compares two DB2Decimal structures to determine if the first is less than or equal to the second.
    Multiplies two DB2Decimal structures.
    Subtracts one DB2Decimal structure from another.
    Top
    See Also