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