Decimal Methods

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

The Decimal type exposes the following members.

Methods

  Name Description
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Add Adds two specified Decimal values.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Ceiling Returns the smallest integral value greater than or equal to the specified decimal number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Compare Compares two specified Decimal values and returns an integer that indicates whether the first value is greater than, less than, or equal to the second value.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 CompareTo(Decimal) Compares this instance to a specified Decimal object and returns an integer that indicates whether the value of this instance is greater than, less than, or equal to the value of the specified Decimal.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 CompareTo(Object) Compares this instance to a specified Object and returns an integer that indicates whether the value of this instance is greater than, less than, or equal to the value of the specified Object.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Divide Divides two specified Decimal values.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equals(Decimal) Returns a value indicating whether this instance and a specified Decimal object represent the same value.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equals(Object) Returns a value indicating whether this instance and a specified Object represent the same type and value. (Overrides ValueType.Equals(Object).)
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equals(Decimal, Decimal) Returns a value indicating whether two specified instances of Decimal represent the same value.
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Floor Rounds a specified Decimal number to the closest integer toward negative infinity.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetBits Converts the value of a specified instance of Decimal to its equivalent binary representation.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetHashCode Returns the hash code for this instance. (Overrides ValueType.GetHashCode().)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetTypeCode Returns the TypeCode for value type Decimal.
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Multiply Multiplies two specified Decimal values.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Negate Returns the result of multiplying the specified Decimal value by negative one.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Parse(String) Converts the string representation of a number to its Decimal equivalent.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Parse(String, NumberStyles) Converts the string representation of a number in a specified style to its Decimal equivalent.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Parse(String, IFormatProvider) Converts the string representation of a number to its Decimal equivalent using the specified culture-specific format information.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Parse(String, NumberStyles, IFormatProvider) Converts the string representation of a number to its Decimal equivalent using the specified style and culture-specific format.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Remainder Computes the remainder after dividing two Decimal values.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Round Rounds a Decimal value to a specified number of decimal places.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Subtract Subtracts one specified Decimal value from another.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToByte Converts the value of the specified Decimal to the equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDouble Converts the value of the specified Decimal to the equivalent double-precision floating-point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt16 Converts the value of the specified Decimal to the equivalent 16-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt32 Converts the value of the specified Decimal to the equivalent 32-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt64 Converts the value of the specified Decimal to the equivalent 64-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSByte Converts the value of the specified Decimal to the equivalent 8-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSingle Converts the value of the specified Decimal to the equivalent single-precision floating-point number.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString() Converts the numeric value of this instance to its equivalent string representation. (Overrides ValueType.ToString().)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(IFormatProvider) Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(String) Converts the numeric value of this instance to its equivalent string representation, using the specified format.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(String, IFormatProvider) Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16 Converts the value of the specified Decimal to the equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32 Converts the value of the specified Decimal to the equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64 Converts the value of the specified Decimal to the equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Truncate Returns the integral digits of the specified Decimal; any fractional digits are discarded.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 TryParse(String, Decimal%) Converts the string representation of a number to its Decimal equivalent. A return value indicates whether the conversion succeeded or failed.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 TryParse(String, NumberStyles, IFormatProvider, Decimal%) Converts the string representation of a number to its Decimal equivalent using the specified style and culture-specific format. A return value indicates whether the conversion succeeded or failed.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToBoolean Infrastructure. For a description of this member, see IConvertible.ToBoolean.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToByte Infrastructure. For a description of this member, see IConvertible.ToByte.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToChar Infrastructure. This conversion is not supported. Attempting to use this method throws an InvalidCastException.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToDateTime Infrastructure. This conversion is not supported. Attempting to use this method throws an InvalidCastException.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToDecimal Infrastructure. For a description of this member, see IConvertible.ToDecimal.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToDouble Infrastructure. For a description of this member, see IConvertible.ToDouble.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToInt16 Infrastructure. For a description of this member, see IConvertible.ToInt16.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToInt32 Infrastructure. For a description of this member, see IConvertible.ToInt32.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToInt64 Infrastructure. For a description of this member, see IConvertible.ToInt64.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToSByte Infrastructure. For a description of this member, see IConvertible.ToSByte.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToSingle Infrastructure. For a description of this member, see IConvertible.ToSingle.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToType Infrastructure. For a description of this member, see IConvertible.ToType.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToUInt16 Infrastructure. For a description of this member, see IConvertible.ToUInt16.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToUInt32 Infrastructure. For a description of this member, see IConvertible.ToInt32.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IConvertible.ToUInt64 Infrastructure. For a description of this member, see IConvertible.ToInt64.

Top

See Also

Reference