Export (0) Print
Expand All

Decimal Methods

The methods of the Decimal structure are listed here. For a complete list of Decimal structure members, see the Decimal Members topic.

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.

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