Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Decimal Members

Represents a decimal number.

The Decimal type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Decimal Overloaded. Initializes a new instance of Decimal.
Top
  NameDescription
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Add Adds two specified Decimal values.
Public method Static member Ceiling Returns the smallest integral value greater than or equal to the specified decimal number.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Compare Compares two specified Decimal values.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework CompareTo Overloaded. Compares this instance to a specified object or Decimal and returns an indication of their relative values.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Divide Divides two specified Decimal values.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Equals Overloaded. Returns a value indicating whether two instances of Decimal represent the same value.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework 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 .NET Compact Framework Supported by the XNA Framework GetBits Converts the value of a specified instance of Decimal to its equivalent binary representation.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Returns the hash code for this instance. (Overrides ValueType.GetHashCode().)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetTypeCode Returns the TypeCode for value type Decimal.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Multiply Multiplies two specified Decimal values.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Negate Returns the result of multiplying the specified Decimal value by negative one.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Parse Overloaded. Converts the string representation of a number to its Decimal equivalent.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Remainder Computes the remainder after dividing two Decimal values.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Round Overloaded. Rounds a value to the nearest integer or specified number of decimal places.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Subtract Subtracts one specified Decimal value from another.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToByte Converts the value of the specified Decimal to the equivalent 8-bit unsigned integer.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToDouble Converts the value of the specified Decimal to the equivalent double-precision floating-point number.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToInt16 Converts the value of the specified Decimal to the equivalent 16-bit signed integer.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToInt32 Converts the value of the specified Decimal to the equivalent 32-bit signed integer.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework 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 .NET Compact Framework Supported by the XNA Framework ToSByte Converts the value of the specified Decimal to the equivalent 8-bit signed integer.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToSingle Converts the value of the specified Decimal to the equivalent single-precision floating-point number.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Overloaded. Converts the numeric value of this instance to its equivalent String representation.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToUInt16 Converts the value of the specified Decimal to the equivalent 16-bit unsigned integer.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToUInt32 Converts the value of the specified Decimal to the equivalent 32-bit unsigned integer.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToUInt64 Converts the value of the specified Decimal to the equivalent 64-bit unsigned integer.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Truncate Returns the integral digits of the specified Decimal; any fractional digits are discarded.
Public method Static member TryParse Overloaded. Converts the string representation of a number to its Decimal equivalent. A return value indicates whether the conversion succeeded or failed.
Top
  NameDescription
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Addition Adds two specified Decimal values.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Decrement Decrements the Decimal operand by one.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Division Divides two specified Decimal values.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Equality Returns a value indicating whether two instances of Decimal are equal.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Explicit Overloaded. Converts the value of a Decimal object to another type.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework GreaterThan Returns a value indicating whether a specified Decimal is greater than another specified Decimal.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework GreaterThanOrEqual Returns a value indicating whether a specified Decimal is greater than or equal to another specified Decimal.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Implicit Overloaded. Converts the value of a type to a Decimal value.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Increment Increments the Decimal operand by 1.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Inequality Returns a value indicating whether two instances of Decimal are not equal.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework LessThan Returns a value indicating whether a specified Decimal is less than another specified Decimal.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework LessThanOrEqual Returns a value indicating whether a specified Decimal is less than or equal to another specified Decimal.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Modulus Returns the remainder resulting from dividing two specified Decimal values.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Multiply Multiplies two specified Decimal values.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Subtraction Subtracts two specified Decimal values.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework UnaryNegation Negates the value of the specified Decimal operand.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework UnaryPlus Returns the value of the Decimal operand (the sign of the operand is unchanged).
Top
  NameDescription
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework MaxValue Represents the largest possible value of Decimal. This field is constant and read-only.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework MinusOne Represents the number negative one (-1).
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework MinValue Represents the smallest possible value of Decimal. This field is constant and read-only.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework One Represents the number one (1).
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework Zero Represents the number zero (0).
Top
  NameDescription
Explicit interface implemetation Private method Supported by the .NET Compact Framework 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 .NET Compact Framework 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 .NET Compact Framework 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 .NET Compact Framework 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 .NET Compact Framework 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 .NET Compact Framework 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 .NET Compact Framework 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 .NET Compact Framework 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 .NET Compact Framework 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 .NET Compact Framework 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 .NET Compact Framework 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 .NET Compact Framework 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 .NET Compact Framework 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 .NET Compact Framework 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 .NET Compact Framework Supported by the XNA Framework IConvertible.ToUInt64 Infrastructure. For a description of this member, see IConvertible.ToInt64.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.