OracleNumber Structure

OracleNumber Structure

 

Represents a fixed precision and scale numeric value between -10 27 -1 and 10 27 -1 to be stored in or retrieved from a database.

Namespace:   System.Data.OracleClient
Assembly:  System.Data.OracleClient (in System.Data.OracleClient.dll)

public struct OracleNumber : IComparable, INullable

NameDescription
System_CAPS_pubmethodOracleNumber(Decimal)

Initializes a new instance of the OracleNumber structure using the supplied Decimal value.

System_CAPS_pubmethodOracleNumber(Double)

Initializes a new instance of the OracleNumber using the supplied double precision value.

System_CAPS_pubmethodOracleNumber(Int32)

Initializes a new instance of the OracleNumber structure using the supplied integer value.

System_CAPS_pubmethodOracleNumber(Int64)

Initializes a new instance of the OracleNumber structure using the supplied long integer value.

System_CAPS_pubmethodOracleNumber(OracleNumber)

Initializes a new instance of the OracleNumber structure using the supplied OracleNumber.

NameDescription
System_CAPS_pubpropertyIsNull

Indicates whether or not the Value of this OracleNumber structure is null.

System_CAPS_pubpropertyValue

Gets the value of the OracleNumber structure. This property is read-only.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAbs(OracleNumber)

Gets the absolute value of the OracleNumber parameter.

System_CAPS_pubmethodSystem_CAPS_staticAcos(OracleNumber)

Calculates the inverse hyperbolic cosine of an OracleNumber.

System_CAPS_pubmethodSystem_CAPS_staticAdd(OracleNumber, OracleNumber)

Calculates the sum of the two OracleNumber structures.

System_CAPS_pubmethodSystem_CAPS_staticAsin(OracleNumber)

Calculates the inverse hyperbolic sine of an OracleNumber.

System_CAPS_pubmethodSystem_CAPS_staticAtan(OracleNumber)

Calculates the inverse hyperbolic tangent of an OracleNumber.

System_CAPS_pubmethodSystem_CAPS_staticAtan2(OracleNumber, OracleNumber)

Calculates the inverse hyperbolic tangent of two OracleNumber structures.

System_CAPS_pubmethodSystem_CAPS_staticCeiling(OracleNumber)

Returns the smallest whole number greater than or equal to the specified OracleNumber structure.

System_CAPS_pubmethodCompareTo(Object)

Compares this instance of the OracleNumber structure to the supplied object and returns an indication of their relative values.

System_CAPS_pubmethodSystem_CAPS_staticCos(OracleNumber)

Calculates the cosine of an OracleNumber.

System_CAPS_pubmethodSystem_CAPS_staticCosh(OracleNumber)

Calculates the hyperbolic cosine of an OracleNumber.

System_CAPS_pubmethodSystem_CAPS_staticDivide(OracleNumber, OracleNumber)

Calculates the results of dividing the first OracleNumber structureby the second.

System_CAPS_pubmethodEquals(Object)

Compares the supplied object parameter to the Value property of the OracleNumber object.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodSystem_CAPS_staticEquals(OracleNumber, OracleNumber)

Performs a logical comparison of the two OracleNumber structures to determine if they are equal.

System_CAPS_pubmethodSystem_CAPS_staticExp(OracleNumber)

Calculates e raised to the power of an OracleNumber. The constant e equals 2.71828182845904, the base of the natural logarithm.

System_CAPS_pubmethodSystem_CAPS_staticFloor(OracleNumber)

Rounds a specified OracleNumber number to the next lower whole number.

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this instance of the OracleNumber structure.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGreaterThan(OracleNumber, OracleNumber)

Performs a logical comparison of two OracleNumber structures to determine whether the first is greater than the second.

System_CAPS_pubmethodSystem_CAPS_staticGreaterThanOrEqual(OracleNumber, OracleNumber)

Performs a logical comparison of the two OracleNumber parameters to determine whether the first is greater than or equal to the second.

System_CAPS_pubmethodSystem_CAPS_staticLessThan(OracleNumber, OracleNumber)

Performs a logical comparison of two OracleNumber structures to determine whether the first is less than the second.

System_CAPS_pubmethodSystem_CAPS_staticLessThanOrEqual(OracleNumber, OracleNumber)

Performs a logical comparison of the two OracleNumber parameters to determine whether the first is less than or equal to the second.

System_CAPS_pubmethodSystem_CAPS_staticLog(OracleNumber)

Calculates natural logarithm of an OracleNumber. Natural logarithms are based on the constant e (2.71828182845904).

System_CAPS_pubmethodSystem_CAPS_staticLog(OracleNumber, Int32)

Calculates an OracleNumber to the base you specify.

System_CAPS_pubmethodSystem_CAPS_staticLog(OracleNumber, OracleNumber)

Calculates an OracleNumber to the base you specify.

System_CAPS_pubmethodSystem_CAPS_staticLog10(OracleNumber)

Calculates the base 10 logarithm of a number.

System_CAPS_pubmethodSystem_CAPS_staticMax(OracleNumber, OracleNumber)

Returns the larger of the two OracleNumber parameter values.

System_CAPS_pubmethodSystem_CAPS_staticMin(OracleNumber, OracleNumber)

Returns the smaller of the two OracleNumber parameter values.

System_CAPS_pubmethodSystem_CAPS_staticModulo(OracleNumber, OracleNumber)

Calculates the modulus from dividing the first OracleNumber structure by the second.

System_CAPS_pubmethodSystem_CAPS_staticMultiply(OracleNumber, OracleNumber)

Calculates the product of the two OracleNumber parameters.

System_CAPS_pubmethodSystem_CAPS_staticNegate(OracleNumber)

Negates the value of the OracleNumber parameter.

System_CAPS_pubmethodSystem_CAPS_staticNotEquals(OracleNumber, OracleNumber)

Performs a logical comparison of the two OracleNumber parameters to determine whether they are not equal.

System_CAPS_pubmethodSystem_CAPS_staticParse(String)

Converts the String representation of a number to its OracleNumber equivalent.

System_CAPS_pubmethodSystem_CAPS_staticPow(OracleNumber, Int32)

Calculates the result of raising a specified OracleNumber structure to the power specified by an Int32 structure.

System_CAPS_pubmethodSystem_CAPS_staticPow(OracleNumber, OracleNumber)

Calculates the result of raising a specified OracleNumber structure to the power specified by a second OracleNumber structure.

System_CAPS_pubmethodSystem_CAPS_staticRound(OracleNumber, Int32)

Gets the number nearest the specified OracleNumber structure's value with the specified precision.

System_CAPS_pubmethodSystem_CAPS_staticShift(OracleNumber, Int32)

Shifts the specified number of digits to the left or right.

System_CAPS_pubmethodSystem_CAPS_staticSign(OracleNumber)

Gets a value indicating the sign of an OracleNumber structure's Value property.

System_CAPS_pubmethodSystem_CAPS_staticSin(OracleNumber)

Calculates the sine of an OracleNumber.

System_CAPS_pubmethodSystem_CAPS_staticSinh(OracleNumber)

Calculates the hyperbolic sine of an OracleNumber.

System_CAPS_pubmethodSystem_CAPS_staticSqrt(OracleNumber)

Calculates the square root of the OracleNumber parameter.

System_CAPS_pubmethodSystem_CAPS_staticSubtract(OracleNumber, OracleNumber)

Calculates the result of subtracting the second OracleNumber structure from the first.

System_CAPS_pubmethodSystem_CAPS_staticTan(OracleNumber)

Calculates the tangent of an OracleNumber.

System_CAPS_pubmethodSystem_CAPS_staticTanh(OracleNumber)

Calculates the hyperbolic tangent of an OracleNumber.

System_CAPS_pubmethodToString()

Converts this OracleNumber structure to String.(Overrides ValueType.ToString().)

System_CAPS_pubmethodSystem_CAPS_staticTruncate(OracleNumber, Int32)

Truncates the specified OracleNumber structure's value to the desired position.

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticE

Returns the value e-2.718.

System_CAPS_pubfieldSystem_CAPS_staticMaxPrecision

A constant representing the largest possible value for precision comparison.

System_CAPS_pubfieldSystem_CAPS_staticMaxScale

A constant representing the maximum value for scale comparison.

System_CAPS_pubfieldSystem_CAPS_staticMaxValue

A constant representing the maximum value of an OracleNumber structure.

System_CAPS_pubfieldSystem_CAPS_staticMinScale

A constant representing the minimum value for scale comparison.

System_CAPS_pubfieldSystem_CAPS_staticMinusOne

Returns the value -1.

System_CAPS_pubfieldSystem_CAPS_staticMinValue

A constant representing the minimum value for an OracleNumber structure.

System_CAPS_pubfieldSystem_CAPS_staticNull

Represents a null value that can be assigned to the Value property of an instance of the OracleNumber class.

System_CAPS_pubfieldSystem_CAPS_staticOne

Returns the value 1.

System_CAPS_pubfieldSystem_CAPS_staticPI

Returns the value of pi-3.1415926535897932384626433832795028842.

System_CAPS_pubfieldSystem_CAPS_staticZero

Returns the value 0.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticAddition(OracleNumber, OracleNumber)

Calculates the sum of the two OracleNumber structures.

System_CAPS_puboperatorSystem_CAPS_staticDivision(OracleNumber, OracleNumber)

Calculates the results of dividing the first OracleNumber structure by the second.

System_CAPS_puboperatorSystem_CAPS_staticEquality(OracleNumber, OracleNumber)

Performs a logical comparison of the two OracleNumber structures to determine whether they are equal.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(Decimal to OracleNumber)

Converts the supplied Decimal structure to an OracleNumber structure.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(Double to OracleNumber)

Converts the supplied Double structure to an OracleNumber structure.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(Int32 to OracleNumber)

Converts the supplied Int32 structure to an OracleNumber structure.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(Int64 to OracleNumber)

Converts the supplied Int64 structure to an OracleNumber structure.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(OracleNumber to Decimal)

Converts the OracleNumber structure to Decimal.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(OracleNumber to Double)

Converts the OracleNumber structure to Double.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(OracleNumber to Int32)

Converts the OracleNumber structure to Int32.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(OracleNumber to Int64)

Converts the OracleNumber structure to Int64.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(String to OracleNumber)

Converts the supplied String to an OracleNumber structure.

System_CAPS_puboperatorSystem_CAPS_staticGreaterThan(OracleNumber, OracleNumber)

Performs a logical comparison of two OracleNumber structures to determine whether the first is greater than the second.

System_CAPS_puboperatorSystem_CAPS_staticGreaterThanOrEqual(OracleNumber, OracleNumber)

Performs a logical comparison of the two OracleNumber parameters to determine whether the first is greater than or equal to the second.

System_CAPS_puboperatorSystem_CAPS_staticInequality(OracleNumber, OracleNumber)

Performs a logical comparison of the two OracleNumber parameters to determine whether they are equal.

System_CAPS_puboperatorSystem_CAPS_staticLessThan(OracleNumber, OracleNumber)

Performs a logical comparison of two OracleNumber structures to determine whether the first is less than the second.

System_CAPS_puboperatorSystem_CAPS_staticLessThanOrEqual(OracleNumber, OracleNumber)

Performs a logical comparison of the two OracleNumber parameters to determine whether the first is less than or equal to the second.

System_CAPS_puboperatorSystem_CAPS_staticModulus(OracleNumber, OracleNumber)

Calculates the remainder left over from dividing an OracleNumber structure by a second OracleNumber structure.

System_CAPS_puboperatorSystem_CAPS_staticMultiply(OracleNumber, OracleNumber)

Calculates the product of two OracleNumber structures.

System_CAPS_puboperatorSystem_CAPS_staticSubtraction(OracleNumber, OracleNumber)

Calculates the result of subtracting the second OracleNumber structure from the first.

System_CAPS_puboperatorSystem_CAPS_staticUnaryNegation(OracleNumber)

Negates the OracleNumber structure.

To obtain an OracleNumber object, call the GetOracleNumber method.

Oracle numeric data types can store up to 27 decimal digits of precision. When converting Oracle numeric values to common language runtime data types, the Oracle value might be too large. Conversely, when converting a numeric value of a common language runtime data types to an OracleNumber, the numeric value may be either too large or too high precision for the OracleNumber. Either of these cases will cause an Oracle ORA-22053 overflow error. If your Oracle database might contain large values, you should use the OracleNumber data type. You can then convert to the common language runtime data type explicitly, and catch or handle any errors.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft