Convert.ToDecimal Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Include Protected Members
Include Inherited Members
Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members
Converts a specified value to a Decimal number.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
Overload List
Name | Description | |
---|---|---|
ToDecimal(Boolean) | Converts the value of the specified Boolean value to the equivalent Decimal number. | |
ToDecimal(Byte) | Converts the value of the specified 8-bit unsigned integer to the equivalent Decimal number. | |
ToDecimal(Char) | Calling this method always throws InvalidCastException. | |
ToDecimal(DateTime) | Calling this method always throws InvalidCastException. | |
ToDecimal(Decimal) | Returns the specified Decimal number; no actual conversion is performed. | |
ToDecimal(Double) | Converts the value of the specified double-precision floating point number to an equivalent Decimal number. | |
ToDecimal(Int16) | Converts the value of the specified 16-bit signed integer to an equivalent Decimal number. | |
ToDecimal(Int32) | Converts the value of the specified 32-bit signed integer to an equivalent Decimal number. | |
ToDecimal(Int64) | Converts the value of the specified 64-bit signed integer to an equivalent Decimal number. | |
ToDecimal(Object) | Converts the value of the specified Object to a Decimal number. | |
ToDecimal(SByte) | Converts the value of the specified 8-bit signed integer to the equivalent Decimal number. | |
ToDecimal(Single) | Converts the value of the specified single-precision floating point number to the equivalent Decimal number. | |
ToDecimal(String) | Converts the specified String representation of a number to an equivalent Decimal number. | |
ToDecimal(UInt16) | Converts the value of the specified 16-bit unsigned integer to the equivalent Decimal number. | |
ToDecimal(UInt32) | Converts the value of the specified 32-bit unsigned integer to an equivalent Decimal number. | |
ToDecimal(UInt64) | Converts the value of the specified 64-bit unsigned integer to an equivalent Decimal number. | |
ToDecimal(Object, IFormatProvider) | Converts the value of the specified Object to an Decimal number using the specified culture-specific formatting information. | |
ToDecimal(String, IFormatProvider) | Converts the specified String representation of a number to an equivalent Decimal number using the specified culture-specific formatting information. |
Top