Decimal Operators and Type Conversions

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.

Operators

  Name Description
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Addition Adds two specified Decimal values.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Decrement Decrements the Decimal operand by one.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Division Divides two specified Decimal values.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equality Returns a value indicating whether two instances of Decimal are equal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Explicit(Decimal to UInt16) Converts a Decimal to a 16-bit unsigned integer.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Explicit(Decimal to SByte) Converts a Decimal to an 8-bit signed integer.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Explicit(Decimal to UInt32) Converts a Decimal to a 32-bit unsigned integer.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Explicit(Decimal to Char) Converts a Decimal to a Unicode character.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Explicit(Decimal to Byte) Converts a Decimal to an 8-bit unsigned integer.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Explicit(Decimal to Int64) Converts a Decimal to a 64-bit signed integer.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Explicit(Decimal to Double) Converts a Decimal to a double-precision floating-point number.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Explicit(Decimal to Int16) Converts a Decimal to a 16-bit signed integer.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Explicit(Decimal to UInt64) Converts a Decimal to a 64-bit unsigned integer.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Explicit(Decimal to Single) Converts a Decimal to a single-precision floating-point number.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Explicit(Decimal to Int32) Converts a Decimal to a 32-bit signed integer.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Explicit(Double to Decimal) Converts a double-precision floating-point number to a Decimal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Explicit(Single to Decimal) Converts a single-precision floating-point number to a Decimal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GreaterThan Returns a value indicating whether a specified Decimal is greater than another specified Decimal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GreaterThanOrEqual Returns a value indicating whether a specified Decimal is greater than or equal to another specified Decimal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Implicit(Byte to Decimal) Converts an 8-bit unsigned integer to a Decimal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Implicit(Char to Decimal) Converts a Unicode character to a Decimal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Implicit(Int16 to Decimal) Converts a 16-bit signed integer to a Decimal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Implicit(Int32 to Decimal) Converts a 32-bit signed integer to a Decimal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Implicit(Int64 to Decimal) Converts a 64-bit signed integer to a Decimal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Implicit(SByte to Decimal) Converts an 8-bit signed integer to a Decimal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Implicit(UInt16 to Decimal) Converts a 16-bit unsigned integer to a Decimal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Implicit(UInt32 to Decimal) Converts a 32-bit unsigned integer to a Decimal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Implicit(UInt64 to Decimal) Converts a 64-bit unsigned integer to a Decimal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Increment Increments the Decimal operand by 1.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Inequality Returns a value indicating whether two instances of Decimal are not equal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 LessThan Returns a value indicating whether a specified Decimal is less than another specified Decimal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 LessThanOrEqual Returns a value indicating whether a specified Decimal is less than or equal to another specified Decimal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Modulus Returns the remainder resulting from dividing two specified Decimal values.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Multiply Multiplies two specified Decimal values.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Subtraction Subtracts two specified Decimal values.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 UnaryNegation Negates the value of the specified Decimal operand.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 UnaryPlus Returns the value of the Decimal operand (the sign of the operand is unchanged).

Top

See Also

Reference