NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Decimal Methods

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

Public:

Abs Returns the absolute value of the specified Decimal.
Add Adds two Decimal values.
Compare Compares specified Decimal values.
CompareTo Compares this instance to a specified Object.
Divide Divides two specified Decimal values.
Equals Overloaded. Determines whether two values are equal.
Floor Rounds a Decimal down to the next lower whole number value.
Format Overloaded. Converts a numeric value to a String.
FromString Converts a string to a Decimal.
GetBits Returns a binary representation of a Decimal.
GetHashCode Returns the hash code for this Decimal.
GetType (inherited from Object) Gets the Type of the Object.
GetTypeCode Returns the hash code for this instance of Decimal.
Max Returns the larger of two Decimal values.
Min Returns the smaller of two Decimal values.
Mod Returns the remainder from dividing two Decimal values.
Multiply Divides two Decimal values and produces a Decimal result.
Negate Returns the negated value of the specified Decimal.
Parse Overloaded. Converts a String to a Decimal.
Round Rounds a Decimal value to a specified number of decimal places.
Subtract Subtracts two specified Decimal values.
ToBoolean Converts a string to a Decimal value.
ToByte Overloaded. Converts a Decimal to an unsigned Byte.
ToChar Converts a Decimal to a character.
ToCurrency Converts a Decimal to a Currency.
ToDateTime Converts this instance of a Decimal to a DateTime object.
ToDecimal Converts this instance of a Decimal to a Decimal format.
ToDouble Overloaded. Converts a Decimal to a Double.
ToInt16 Overloaded. Converts a Decimal to an Int16.
ToInt32 Overloaded. Converts a Decimal to an Int32.
ToInt64 Overloaded. Converts a Decimal to an Int64.
ToSByte Overloaded. Converts a Decimal to an SByte.
ToSingle Overloaded. Converts a Decimal to a Single.
ToString Overloaded. [To be supplied.]
ToType Retrieves the Type for a specified Object.
ToUInt16 Overloaded. [To be supplied.]
ToUInt32 Overloaded. [To be supplied.]
ToUInt64 Overloaded. [To be supplied.]
Truncate Truncates a specified Decimal to an integer value.

Protected:

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

Decimal Structure | System Namespace