This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Decimal Members
Public:
Constructor
Properties
Scale |
Retrieves the scale value for the Decimal. |
Methods
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. |
Operators and Type Conversions
Addition Operator |
Adds two Decimal values. |
Decrement Operator |
[To be supplied.] |
Division Operator |
Divides two Decimal values and returns a Decimal result. |
Equality Operator |
Determines whether two specified Decimal values are equal. |
Greater Than Operator |
Determines whether one Decimal value is greater than a specified Decimal. |
Greater Than Or Equal Operator |
Determines whether one Decimal value is greater than or equal to a specified Decimal. |
Increment Operator |
[To be supplied.] |
Inequality Operator |
Determines whether two Decimal values are not equal. |
Less Than Operator |
Determines whether one Decimal value is less than a specified Decimal. |
Less Than Or Equal Operator |
Determines whether one Decimal value is less than or equal to a specified Decimal. |
Modulus Operator |
Determines the remainder from dividing two Decimal values. |
Multiplication Operator |
Multiplies two Decimal values and produces a Decimal result. |
Subtraction Operator |
Subtracts two specified Decimal values. |
Unary Negation Operator |
Decrements the specified number. |
Unary Plus Operator |
Returns the negated value of the specified Decimal. |
Decimal to Double Conversion |
[To be supplied.] |
Decimal to Single Conversion |
[To be supplied.] |
Decimal to UInt32 Conversion |
[To be supplied.] |
Decimal to Int64 Conversion |
[To be supplied.] |
Decimal to UInt64 Conversion |
[To be supplied.] |
Single to Decimal Conversion |
[To be supplied.] |
Decimal to Int16 Conversion |
[To be supplied.] |
Decimal to Char Conversion |
[To be supplied.] |
Decimal to Int32 Conversion |
[To be supplied.] |
Decimal to UInt16 Conversion |
[To be supplied.] |
Decimal to SByte Conversion |
[To be supplied.] |
Double to Decimal Conversion |
[To be supplied.] |
Decimal to Byte Conversion |
[To be supplied.] |
Byte to Decimal Conversion |
Overloaded. [To be supplied.] |
Fields
Empty |
Representing the constant that is the empty Decimal value. |
MaxValue |
Representing the constant that is the largest possible Decimal value. |
MinusOne |
Representing the constant that is the Decimal value of minus one:-1. |
MinValue |
Representing the constant that is the smallest possible Decimal value. . |
One |
Representing the constant that is the Decimal value of one: 1. |
ScaleMask |
Representing the constant that is the scale mask for the flags field. |
SignMask |
Representing the constant that is the sign mask for the flags field. . |
Zero |
Representing the constant that is the Decimal value of zero: 0. |
Protected:
Methods
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