Export (0) Print
Expand All

Decimal Operators and Type Conversions

.NET Framework 1.1

The operators and type conversions of the Decimal structure are listed here. For a complete list of Decimal structure members, see the Decimal Members topic.

Public Type Conversions

public operatorstatic (Shared in Visual Basic)Addition Operator

Supported by the .NET Compact Framework.

Adds two specified Decimal values.
public operatorstatic (Shared in Visual Basic)Decrement Operator

Supported by the .NET Compact Framework.

Decrements the Decimal operand by one.
public operatorstatic (Shared in Visual Basic)Division Operator

Supported by the .NET Compact Framework.

Divides two specified Decimal values.
public operatorstatic (Shared in Visual Basic)Equality Operator

Supported by the .NET Compact Framework.

Returns a value indicating whether two instances of Decimal are equal.
public operatorstatic (Shared in Visual Basic)Greater Than Operator

Supported by the .NET Compact Framework.

Returns a value indicating whether a specified Decimal is greater than another specified Decimal.
public operatorstatic (Shared in Visual Basic)Greater Than Or Equal Operator

Supported by the .NET Compact Framework.

Returns a value indicating whether a specified Decimal is greater than or equal to another specified Decimal.
public operatorstatic (Shared in Visual Basic)Increment Operator

Supported by the .NET Compact Framework.

Increments the Decimal operand by 1.
public operatorstatic (Shared in Visual Basic)Inequality Operator

Supported by the .NET Compact Framework.

Returns a value indicating whether two instances of Decimal are not equal.
public operatorstatic (Shared in Visual Basic)Less Than Operator

Supported by the .NET Compact Framework.

Returns a value indicating whether a specified Decimal is less than another specified Decimal.
public operatorstatic (Shared in Visual Basic)Less Than Or Equal Operator

Supported by the .NET Compact Framework.

Returns a value indicating whether a specified Decimal is less than or equal to another specified Decimal.
public operatorstatic (Shared in Visual Basic)Modulus Operator

Supported by the .NET Compact Framework.

Returns the remainder resulting from dividing two specified Decimal values.
public operatorstatic (Shared in Visual Basic)Multiplication Operator

Supported by the .NET Compact Framework.

Multiplies two specified Decimal values.
public operatorstatic (Shared in Visual Basic)Subtraction Operator

Supported by the .NET Compact Framework.

Subtracts two specified Decimal values.
public operatorstatic (Shared in Visual Basic)Unary Negation Operator

Supported by the .NET Compact Framework.

Negates the value of the specified Decimal operand.
public operatorstatic (Shared in Visual Basic)Unary Plus Operator

Supported by the .NET Compact Framework.

Returns the value of the Decimal operand (the sign of the operand is unchanged).
public operatorstatic (Shared in Visual Basic)Decimal to Char Conversion

Supported by the .NET Compact Framework.

Converts a Decimal to a Unicode character.
public operatorstatic (Shared in Visual Basic)Decimal to Int64 Conversion

Supported by the .NET Compact Framework.

Converts a Decimal to a 64-bit signed integer.
public operatorstatic (Shared in Visual Basic)Decimal to UInt32 Conversion

Supported by the .NET Compact Framework.

Converts a Decimal to a 32-bit unsigned integer.
public operatorstatic (Shared in Visual Basic)Decimal to Int32 Conversion

Supported by the .NET Compact Framework.

Converts a Decimal to a 32-bit signed integer.
public operatorstatic (Shared in Visual Basic)Decimal to UInt16 Conversion

Supported by the .NET Compact Framework.

Converts a Decimal to a 16-bit unsigned integer.
public operatorstatic (Shared in Visual Basic)Decimal to Int16 Conversion

Supported by the .NET Compact Framework.

Converts a Decimal to a 16-bit signed integer.
public operatorstatic (Shared in Visual Basic)Decimal to SByte Conversion

Supported by the .NET Compact Framework.

Converts a Decimal to an 8-bit signed integer.
public operatorstatic (Shared in Visual Basic)Decimal to Single Conversion

Supported by the .NET Compact Framework.

Converts a Decimal to a single-precision floating-point number.
public operatorstatic (Shared in Visual Basic)Decimal to Double Conversion

Supported by the .NET Compact Framework.

Converts a Decimal to a double-precision floating-point number.
public operatorstatic (Shared in Visual Basic)Decimal to UInt64 Conversion

Supported by the .NET Compact Framework.

Converts a Decimal to a 64-bit unsigned integer.
public operatorstatic (Shared in Visual Basic)Decimal to Byte Conversion

Supported by the .NET Compact Framework.

Converts a Decimal to an 8-bit unsigned integer.
public operatorstatic (Shared in Visual Basic)Double to Decimal Conversion

Supported by the .NET Compact Framework.

Converts a double-precision floating-point number to a Decimal.
public operatorstatic (Shared in Visual Basic)Single to Decimal Conversion

Supported by the .NET Compact Framework.

Converts a single-precision floating-point number to a Decimal.
public operatorstatic (Shared in Visual Basic)Byte to Decimal Conversion

Supported by the .NET Compact Framework.

Converts an 8-bit unsigned integer to a Decimal.
public operatorstatic (Shared in Visual Basic)Char to Decimal Conversion

Supported by the .NET Compact Framework.

Converts a Unicode character to a Decimal.
public operatorstatic (Shared in Visual Basic)Int16 to Decimal Conversion

Supported by the .NET Compact Framework.

Converts a 16-bit signed integer to a Decimal.
public operatorstatic (Shared in Visual Basic)Int32 to Decimal Conversion

Supported by the .NET Compact Framework.

Converts a 32-bit signed integer to a Decimal.
public operatorstatic (Shared in Visual Basic)Int64 to Decimal Conversion

Supported by the .NET Compact Framework.

Converts a 64-bit signed integer to a Decimal.
public operatorstatic (Shared in Visual Basic)SByte to Decimal Conversion

Supported by the .NET Compact Framework.

Converts an 8-bit signed integer to a Decimal.
public operatorstatic (Shared in Visual Basic)UInt16 to Decimal Conversion

Supported by the .NET Compact Framework.

Converts a 16-bit unsigned integer to a Decimal.
public operatorstatic (Shared in Visual Basic)UInt32 to Decimal Conversion

Supported by the .NET Compact Framework.

Converts a 32-bit unsigned integer to a Decimal.
public operatorstatic (Shared in Visual Basic)UInt64 to Decimal Conversion

Supported by the .NET Compact Framework.

Converts a 64-bit unsigned integer to a Decimal.

See Also

Decimal Structure | System Namespace

Show:
© 2014 Microsoft