Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

Decimal Operators and Type Conversions

The Decimal type exposes the following members.

  NameDescription
Public operator Static member Addition Adds two specified Decimal values.
Public operator Static member Decrement Decrements the Decimal operand by one.
Public operator Static member Division Divides two specified Decimal values.
Public operator Static member Equality Returns a value indicating whether two instances of Decimal are equal.
Public operator Static member Explicit(Decimal to Int16) Converts a Decimal to a 16-bit signed integer.
Public operator Static member Explicit(Decimal to Double) Converts a Decimal to a double-precision floating-point number.
Public operator Static member Explicit(Decimal to SByte) Converts a Decimal to an 8-bit signed integer.
Public operator Static member Explicit(Decimal to Char) Converts a Decimal to a Unicode character.
Public operator Static member Explicit(Decimal to Int64) Converts a Decimal to a 64-bit signed integer.
Public operator Static member Explicit(Decimal to Int32) Converts a Decimal to a 32-bit signed integer.
Public operator Static member Explicit(Decimal to UInt64) Converts a Decimal to a 64-bit unsigned integer.
Public operator Static member Explicit(Decimal to UInt16) Converts a Decimal to a 16-bit unsigned integer.
Public operator Static member Explicit(Decimal to Single) Converts a Decimal to a single-precision floating-point number.
Public operator Static member Explicit(Decimal to UInt32) Converts a Decimal to a 32-bit unsigned integer.
Public operator Static member Explicit(Decimal to Byte) Converts a Decimal to an 8-bit unsigned integer.
Public operator Static member Explicit(Double to Decimal) Converts a double-precision floating-point number to a Decimal.
Public operator Static member Explicit(Single to Decimal) Converts a single-precision floating-point number to a Decimal.
Public operator Static member GreaterThan Returns a value indicating whether a specified Decimal is greater than another specified Decimal.
Public operator Static member GreaterThanOrEqual Returns a value indicating whether a specified Decimal is greater than or equal to another specified Decimal.
Public operator Static member Implicit(Byte to Decimal) Converts an 8-bit unsigned integer to a Decimal.
Public operator Static member Implicit(Char to Decimal) Converts a Unicode character to a Decimal.
Public operator Static member Implicit(Int16 to Decimal) Converts a 16-bit signed integer to a Decimal.
Public operator Static member Implicit(Int32 to Decimal) Converts a 32-bit signed integer to a Decimal.
Public operator Static member Implicit(Int64 to Decimal) Converts a 64-bit signed integer to a Decimal.
Public operator Static member Implicit(SByte to Decimal) Converts an 8-bit signed integer to a Decimal.
Public operator Static member Implicit(UInt16 to Decimal) Converts a 16-bit unsigned integer to a Decimal.
Public operator Static member Implicit(UInt32 to Decimal) Converts a 32-bit unsigned integer to a Decimal.
Public operator Static member Implicit(UInt64 to Decimal) Converts a 64-bit unsigned integer to a Decimal.
Public operator Static member Increment Increments the Decimal operand by 1.
Public operator Static member Inequality Returns a value indicating whether two instances of Decimal are not equal.
Public operator Static member LessThan Returns a value indicating whether a specified Decimal is less than another specified Decimal.
Public operator Static member LessThanOrEqual Returns a value indicating whether a specified Decimal is less than or equal to another specified Decimal.
Public operator Static member Modulus Returns the remainder resulting from dividing two specified Decimal values.
Public operator Static member Multiply Multiplies two specified Decimal values.
Public operator Static member Subtraction Subtracts two specified Decimal values.
Public operator Static member UnaryNegation Negates the value of the specified Decimal operand.
Public operator Static member UnaryPlus Returns the value of the Decimal operand (the sign of the operand is unchanged).
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.