.NET Framework Class Library
Decimal Members

Represents a decimal number.

The Decimal type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkDecimalOverloaded. Initializes a new instance of Decimal.
Top
Methods

  NameDescription
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkAddAdds two specified Decimal values.
Public methodStatic memberCeilingReturns the smallest integral value greater than or equal to the specified decimal number.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCompareCompares two specified Decimal values.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCompareToOverloaded. Compares this instance to a specified object or Decimal and returns an indication of their relative values.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkDivideDivides two specified Decimal values.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEqualsOverloaded. Returns a value indicating whether two instances of Decimal represent the same value.
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFloorRounds a specified Decimal number to the closest integer toward negative infinity.
Public methodStatic memberFromOACurrencyConverts the specified 64-bit signed integer, which contains an OLE Automation Currency value, to the equivalent Decimal value.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetBitsConverts the value of a specified instance of Decimal to its equivalent binary representation.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetHashCodeReturns the hash code for this instance. (Overrides ValueType..::.GetHashCode()()().)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetTypeCodeReturns the TypeCode for value type Decimal.
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMultiplyMultiplies two specified Decimal values.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkNegateReturns the result of multiplying the specified Decimal value by negative one.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkParseOverloaded. Converts the string representation of a number to its Decimal equivalent.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkRemainderComputes the remainder after dividing two Decimal values.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkRoundOverloaded. Rounds a value to the nearest integer or specified number of decimal places.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSubtractSubtracts one specified Decimal value from another.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToByteConverts the value of the specified Decimal to the equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToDoubleConverts the value of the specified Decimal to the equivalent double-precision floating-point number.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToInt16Converts the value of the specified Decimal to the equivalent 16-bit signed integer.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToInt32Converts the value of the specified Decimal to the equivalent 32-bit signed integer.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToInt64Converts the value of the specified Decimal to the equivalent 64-bit signed integer.
Public methodStatic memberToOACurrencyConverts the specified Decimal value to the equivalent OLE Automation Currency value, which is contained in a 64-bit signed integer.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToSByteConverts the value of the specified Decimal to the equivalent 8-bit signed integer.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToSingleConverts the value of the specified Decimal to the equivalent single-precision floating-point number.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToStringOverloaded. Converts the numeric value of this instance to its equivalent String representation.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToUInt16Converts the value of the specified Decimal to the equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToUInt32Converts the value of the specified Decimal to the equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToUInt64Converts the value of the specified Decimal to the equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkTruncateReturns the integral digits of the specified Decimal; any fractional digits are discarded.
Public methodStatic memberTryParseOverloaded. Converts the string representation of a number to its Decimal equivalent. A return value indicates whether the conversion succeeded or failed.
Top
Operators

  NameDescription
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkAdditionAdds two specified Decimal values.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkDecrementDecrements the Decimal operand by one.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkDivisionDivides two specified Decimal values.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEqualityReturns a value indicating whether two instances of Decimal are equal.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkExplicitOverloaded. Converts the value of a Decimal object to another type.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGreaterThanReturns a value indicating whether a specified Decimal is greater than another specified Decimal.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGreaterThanOrEqualReturns a value indicating whether a specified Decimal is greater than or equal to another specified Decimal.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkImplicitOverloaded. Converts the value of a type to a Decimal value.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIncrementIncrements the Decimal operand by 1.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkInequalityReturns a value indicating whether two instances of Decimal are not equal.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkLessThanReturns a value indicating whether a specified Decimal is less than another specified Decimal.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkLessThanOrEqualReturns a value indicating whether a specified Decimal is less than or equal to another specified Decimal.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkModulusReturns the remainder resulting from dividing two specified Decimal values.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMultiplyMultiplies two specified Decimal values.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSubtractionSubtracts two specified Decimal values.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkUnaryNegationNegates the value of the specified Decimal operand.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkUnaryPlusReturns the value of the Decimal operand (the sign of the operand is unchanged).
Top
Fields

  NameDescription
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMaxValueRepresents the largest possible value of Decimal. This field is constant and read-only.
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMinusOneRepresents the number negative one (-1).
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMinValueRepresents the smallest possible value of Decimal. This field is constant and read-only.
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkOneRepresents the number one (1).
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkZeroRepresents the number zero (0).
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToBooleanInfrastructure. For a description of this member, see IConvertible..::.ToBoolean.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToByteInfrastructure. For a description of this member, see IConvertible..::.ToByte.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToCharInfrastructure. This conversion is not supported. Attempting to use this method throws an InvalidCastException.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToDateTimeInfrastructure. This conversion is not supported. Attempting to use this method throws an InvalidCastException.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToDecimalInfrastructure. For a description of this member, see IConvertible..::.ToDecimal.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToDoubleInfrastructure. For a description of this member, see IConvertible..::.ToDouble.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToInt16Infrastructure. For a description of this member, see IConvertible..::.ToInt16.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToInt32Infrastructure. For a description of this member, see IConvertible..::.ToInt32.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToInt64Infrastructure. For a description of this member, see IConvertible..::.ToInt64.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToSByteInfrastructure. For a description of this member, see IConvertible..::.ToSByte.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToSingleInfrastructure. For a description of this member, see IConvertible..::.ToSingle.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToTypeInfrastructure. For a description of this member, see IConvertible..::.ToType.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToUInt16Infrastructure. For a description of this member, see IConvertible..::.ToUInt16.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToUInt32Infrastructure. For a description of this member, see IConvertible..::.ToInt32.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToUInt64Infrastructure. For a description of this member, see IConvertible..::.ToInt64.
Top
See Also

Reference

Tags :


Page view tracker