Export (0) Print
Expand All

Decimal Members

Decimal overview

Public Constructors

public constructorDecimal Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of Decimal.

Public Fields

public fieldstatic (Shared in Visual Basic)MaxValue

Supported by the .NET Compact Framework.

Represents the largest possible value of Decimal. This field is constant and read-only.
public fieldstatic (Shared in Visual Basic)MinusOne

Supported by the .NET Compact Framework.

Represents the number negative one (-1).
public fieldstatic (Shared in Visual Basic)MinValue

Supported by the .NET Compact Framework.

Represents the smallest possible value of Decimal. This field is constant and read-only.
public fieldstatic (Shared in Visual Basic)One

Supported by the .NET Compact Framework.

Represents the number one (1).
public fieldstatic (Shared in Visual Basic)Zero

Supported by the .NET Compact Framework.

Represents the number zero (0).

Public Methods

public methodstatic (Shared in Visual Basic)Add

Supported by the .NET Compact Framework.

Adds two specified Decimal values.
public methodstatic (Shared in Visual Basic)Compare

Supported by the .NET Compact Framework.

Compares two specified Decimal values.
public methodCompareTo

Supported by the .NET Compact Framework.

Compares this instance to a specified Object.
public methodstatic (Shared in Visual Basic)Divide

Supported by the .NET Compact Framework.

Divides two specified Decimal values.
public methodEquals

Supported by the .NET Compact Framework.

Overloaded. Overridden. Returns a value indicating whether two instances of Decimal represent the same value.
public methodstatic (Shared in Visual Basic)Floor

Supported by the .NET Compact Framework.

Rounds a specified Decimal number to the closest integer toward negative infinity.
public methodstatic (Shared in Visual Basic)FromOACurrency Converts the specified 64-bit signed integer, which contains an OLE Automation Currency value, to the equivalent Decimal value.
public methodstatic (Shared in Visual Basic)GetBits

Supported by the .NET Compact Framework.

Converts the value of a specified instance of Decimal to its equivalent binary representation.
public methodGetHashCode

Supported by the .NET Compact Framework.

Overridden. Returns the hash code for this instance.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodGetTypeCode

Supported by the .NET Compact Framework.

Returns the TypeCode for value type Decimal.
public methodstatic (Shared in Visual Basic)Multiply

Supported by the .NET Compact Framework.

Multiplies two specified Decimal values.
public methodstatic (Shared in Visual Basic)Negate

Supported by the .NET Compact Framework.

Returns the result of multiplying the specified Decimal value by negative one.
public methodstatic (Shared in Visual Basic)Parse

Supported by the .NET Compact Framework.

Overloaded. Converts the String representation of a number to its Decimal equivalent.
public methodstatic (Shared in Visual Basic)Remainder

Supported by the .NET Compact Framework.

Computes the remainder after dividing two Decimal values.
public methodstatic (Shared in Visual Basic)Round

Supported by the .NET Compact Framework.

Rounds a Decimal value to a specified number of decimal places.
public methodstatic (Shared in Visual Basic)Subtract

Supported by the .NET Compact Framework.

Subtracts one specified Decimal value from another.
public methodstatic (Shared in Visual Basic)ToByte

Supported by the .NET Compact Framework.

Converts the value of the specified Decimal to the equivalent 8-bit unsigned integer.
public methodstatic (Shared in Visual Basic)ToDouble

Supported by the .NET Compact Framework.

Converts the value of the specified Decimal to the equivalent double-precision floating-point number.
public methodstatic (Shared in Visual Basic)ToInt16

Supported by the .NET Compact Framework.

Converts the value of the specified Decimal to the equivalent 16-bit signed integer.
public methodstatic (Shared in Visual Basic)ToInt32

Supported by the .NET Compact Framework.

Converts the value of the specified Decimal to the equivalent 32-bit signed integer.
public methodstatic (Shared in Visual Basic)ToInt64

Supported by the .NET Compact Framework.

Converts the value of the specified Decimal to the equivalent 64-bit signed integer.
public methodstatic (Shared in Visual Basic)ToOACurrency Converts the specified Decimal value to the equivalent OLE Automation Currency value, which is contained in a 64-bit signed integer.
public methodstatic (Shared in Visual Basic)ToSByte

Supported by the .NET Compact Framework.

Converts the value of the specified Decimal to the equivalent 8-bit signed integer.
public methodstatic (Shared in Visual Basic)ToSingle

Supported by the .NET Compact Framework.

Converts the value of the specified Decimal to the equivalent single-precision floating-point number.
public methodToString

Supported by the .NET Compact Framework.

Overloaded. Overridden. Converts the numeric value of this instance to its equivalent String representation.
public methodstatic (Shared in Visual Basic)ToUInt16

Supported by the .NET Compact Framework.

Converts the value of the specified Decimal to the equivalent 16-bit unsigned integer.
public methodstatic (Shared in Visual Basic)ToUInt32

Supported by the .NET Compact Framework.

Converts the value of the specified Decimal to the equivalent 32-bit unsigned integer.
public methodstatic (Shared in Visual Basic)ToUInt64

Supported by the .NET Compact Framework.

Converts the value of the specified Decimal to the equivalent 64-bit unsigned integer.
public methodstatic (Shared in Visual Basic)Truncate

Supported by the .NET Compact Framework.

Returns the integral digits of the specified Decimal; any fractional digits are discarded.

Public Operators and 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.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

Decimal Structure | System Namespace

Show:
© 2014 Microsoft