Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Decimal Methods

The Decimal type exposes the following members.

  Name Description
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Add Adds two specified Decimal values.
Public method Static member Supported by Portable Class Library Ceiling Returns the smallest integral value that is greater than or equal to the specified decimal number.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Compare Compares two specified Decimal values.
Public method Supported by the XNA Framework Supported by Portable Class Library CompareTo(Decimal) Compares this instance to a specified Decimal object and returns a comparison of their relative values.
Public method Supported by the XNA Framework CompareTo(Object) Compares this instance to a specified object and returns a comparison of their relative values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Divide Divides two specified Decimal values.
Public method Supported by the XNA Framework Supported by Portable Class Library Equals(Decimal) Returns a value indicating whether this instance and a specified Decimal object represent the same value.
Public method Supported by the XNA Framework Supported by Portable Class Library Equals(Object) Returns a value indicating whether this instance and a specified Object represent the same type and value. (Overrides ValueType.Equals(Object).)
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Equals(Decimal, Decimal) Returns a value indicating whether two specified instances of Decimal represent the same value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Floor Rounds a specified Decimal number to the closest integer toward negative infinity.
Public method Static member FromOACurrency Converts the specified 64-bit signed integer, which contains an OLE Automation Currency value, to the equivalent Decimal value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library GetBits Converts the value of a specified instance of Decimal to its equivalent binary representation.
Public method Supported by the XNA Framework Supported by Portable Class Library GetHashCode Returns the hash code for this instance. (Overrides ValueType.GetHashCode().)
Public method Supported by the XNA Framework Supported by Portable Class Library GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Supported by the XNA Framework GetTypeCode Returns the TypeCode for value type Decimal.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Multiply Multiplies two specified Decimal values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Negate Returns the result of multiplying the specified Decimal value by negative one.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Parse(String) Converts the string representation of a number to its Decimal equivalent.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Parse(String, NumberStyles) Converts the string representation of a number in a specified style to its Decimal equivalent.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Parse(String, IFormatProvider) Converts the string representation of a number to its Decimal equivalent using the specified culture-specific format information.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Parse(String, NumberStyles, IFormatProvider) Converts the string representation of a number to its Decimal equivalent using the specified style and culture-specific format.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Remainder Computes the remainder after dividing two Decimal values.
Public method Static member Round(Decimal) Rounds a decimal value to the nearest integer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Round(Decimal, Int32) Rounds a Decimal value to a specified number of decimal places.
Public method Static member Round(Decimal, MidpointRounding) Rounds a decimal value to the nearest integer. A parameter specifies how to round the value if it is midway between two other numbers.
Public method Static member Round(Decimal, Int32, MidpointRounding) Rounds a decimal value to a specified precision. A parameter specifies how to round the value if it is midway between two other numbers.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Subtract Subtracts one specified Decimal value from another.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToByte Converts the value of the specified Decimal to the equivalent 8-bit unsigned integer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToDouble Converts the value of the specified Decimal to the equivalent double-precision floating-point number.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToInt16 Converts the value of the specified Decimal to the equivalent 16-bit signed integer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToInt32 Converts the value of the specified Decimal to the equivalent 32-bit signed integer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToInt64 Converts the value of the specified Decimal to the equivalent 64-bit signed integer.
Public method Static member ToOACurrency Converts the specified Decimal value to the equivalent OLE Automation Currency value, which is contained in a 64-bit signed integer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToSByte Converts the value of the specified Decimal to the equivalent 8-bit signed integer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToSingle Converts the value of the specified Decimal to the equivalent single-precision floating-point number.
Public method Supported by the XNA Framework Supported by Portable Class Library ToString() Converts the numeric value of this instance to its equivalent string representation. (Overrides ValueType.ToString().)
Public method Supported by the XNA Framework Supported by Portable Class Library ToString(IFormatProvider) Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
Public method Supported by the XNA Framework Supported by Portable Class Library ToString(String) Converts the numeric value of this instance to its equivalent string representation, using the specified format.
Public method Supported by the XNA Framework Supported by Portable Class Library 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 method Static member Supported by the XNA Framework Supported by Portable Class Library ToUInt16 Converts the value of the specified Decimal to the equivalent 16-bit unsigned integer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToUInt32 Converts the value of the specified Decimal to the equivalent 32-bit unsigned integer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToUInt64 Converts the value of the specified Decimal to the equivalent 64-bit unsigned integer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Truncate Returns the integral digits of the specified Decimal; any fractional digits are discarded.
Public method Static member Supported by Portable Class Library 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 method Static member Supported by Portable Class Library 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

  Name Description
Explicit interface implemetation Private method Supported by Portable Class Library IComparable.CompareTo Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Explicit interface implemetation Private method Supported by the XNA Framework IConvertible.ToBoolean Infrastructure. For a description of this member, see IConvertible.ToBoolean.
Explicit interface implemetation Private method Supported by the XNA Framework IConvertible.ToByte Infrastructure. For a description of this member, see IConvertible.ToByte.
Explicit interface implemetation Private method Supported by the XNA Framework IConvertible.ToChar Infrastructure. This conversion is not supported. Attempting to use this method throws an InvalidCastException.
Explicit interface implemetation Private method Supported by the XNA Framework IConvertible.ToDateTime Infrastructure. This conversion is not supported. Attempting to use this method throws an InvalidCastException.
Explicit interface implemetation Private method Supported by the XNA Framework IConvertible.ToDecimal Infrastructure. For a description of this member, see IConvertible.ToDecimal.
Explicit interface implemetation Private method Supported by the XNA Framework IConvertible.ToDouble Infrastructure. For a description of this member, see IConvertible.ToDouble.
Explicit interface implemetation Private method Supported by the XNA Framework IConvertible.ToInt16 Infrastructure. For a description of this member, see IConvertible.ToInt16.
Explicit interface implemetation Private method Supported by the XNA Framework IConvertible.ToInt32 Infrastructure. For a description of this member, see IConvertible.ToInt32.
Explicit interface implemetation Private method Supported by the XNA Framework IConvertible.ToInt64 Infrastructure. For a description of this member, see IConvertible.ToInt64.
Explicit interface implemetation Private method Supported by the XNA Framework IConvertible.ToSByte Infrastructure. For a description of this member, see IConvertible.ToSByte.
Explicit interface implemetation Private method Supported by the XNA Framework IConvertible.ToSingle Infrastructure. For a description of this member, see IConvertible.ToSingle.
Explicit interface implemetation Private method Supported by the XNA Framework IConvertible.ToType Infrastructure. For a description of this member, see IConvertible.ToType.
Explicit interface implemetation Private method Supported by the XNA Framework IConvertible.ToUInt16 Infrastructure. For a description of this member, see IConvertible.ToUInt16.
Explicit interface implemetation Private method Supported by the XNA Framework IConvertible.ToUInt32 Infrastructure. For a description of this member, see IConvertible.ToInt32.
Explicit interface implemetation Private method Supported by the XNA Framework IConvertible.ToUInt64 Infrastructure. For a description of this member, see IConvertible.ToInt64.
Explicit interface implemetation Private method IDeserializationCallback.OnDeserialization Infrastructure. Runs when the deserialization of an object has been completed.
Top
Show:
© 2015 Microsoft