Export (0) Print
Expand All

Convert.ToDecimal Method

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.

  NameDescription
Public method Static member ToDecimal(Boolean) Converts the specified Boolean value to the equivalent decimal number.
Public method Static member ToDecimal(Byte) Converts the value of the specified 8-bit unsigned integer to the equivalent decimal number.
Public method Static member ToDecimal(Char) Calling this method always throws InvalidCastException.
Public method Static member ToDecimal(DateTime) Calling this method always throws InvalidCastException.
Public method Static member ToDecimal(Decimal) Returns the specified decimal number; no actual conversion is performed.
Public method Static member ToDecimal(Double) Converts the value of the specified double-precision floating-point number to an equivalent decimal number.
Public method Static member ToDecimal(Int16) Converts the value of the specified 16-bit signed integer to an equivalent decimal number.
Public method Static member ToDecimal(Int32) Converts the value of the specified 32-bit signed integer to an equivalent decimal number.
Public method Static member ToDecimal(Int64) Converts the value of the specified 64-bit signed integer to an equivalent decimal number.
Public method Static member ToDecimal(Object) Converts the value of the specified object to an equivalent decimal number.
Public method Static member ToDecimal(SByte) Converts the value of the specified 8-bit signed integer to the equivalent decimal number.
Public method Static member ToDecimal(Single) Converts the value of the specified single-precision floating-point number to the equivalent decimal number.
Public method Static member ToDecimal(String) Converts the specified string representation of a number to an equivalent decimal number.
Public method Static member ToDecimal(UInt16) Converts the value of the specified 16-bit unsigned integer to an equivalent decimal number.
Public method Static member ToDecimal(UInt32) Converts the value of the specified 32-bit unsigned integer to an equivalent decimal number.
Public method Static member ToDecimal(UInt64) Converts the value of the specified 64-bit unsigned integer to an equivalent decimal number.
Public method Static member ToDecimal(Object, IFormatProvider) Converts the value of the specified object to an equivalent decimal number, using the specified culture-specific formatting information.
Public method Static member ToDecimal(String, IFormatProvider) Converts the specified string representation of a number to an equivalent decimal number, using the specified culture-specific formatting information.
Top

Community Additions

ADD
Show:
© 2014 Microsoft