Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 2.0
System
Convert Class
Convert Methods
ToDecimal Method

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
.NET Framework Class Library
Convert.ToDecimal Method

Converts a specified value to a Decimal number.

Name Description
Convert.ToDecimal (Boolean) Converts the value of the specified Boolean value to the equivalent Decimal number.

Supported by the .NET Compact Framework.

Convert.ToDecimal (Byte) Converts the value of the specified 8-bit unsigned integer to the equivalent Decimal number.

Supported by the .NET Compact Framework.

Convert.ToDecimal (Char) Calling this method always throws InvalidCastException.

Supported by the .NET Compact Framework.

Convert.ToDecimal (DateTime) Calling this method always throws InvalidCastException.

Supported by the .NET Compact Framework.

Convert.ToDecimal (Decimal) Returns the specified Decimal number; no actual conversion is performed.

Supported by the .NET Compact Framework.

Convert.ToDecimal (Double) Converts the value of the specified double-precision floating point number to an equivalent Decimal number.

Supported by the .NET Compact Framework.

Convert.ToDecimal (Int16) Converts the value of the specified 16-bit signed integer to an equivalent Decimal number.

Supported by the .NET Compact Framework.

Convert.ToDecimal (Int32) Converts the value of the specified 32-bit signed integer to an equivalent Decimal number.

Supported by the .NET Compact Framework.

Convert.ToDecimal (Int64) Converts the value of the specified 64-bit signed integer to an equivalent Decimal number.

Supported by the .NET Compact Framework.

Convert.ToDecimal (Object) Converts the value of the specified Object to a Decimal number.

Supported by the .NET Compact Framework.

Convert.ToDecimal (SByte) Converts the value of the specified 8-bit signed integer to the equivalent Decimal number.

Supported by the .NET Compact Framework.

Convert.ToDecimal (Single) Converts the value of the specified single-precision floating point number to the equivalent Decimal number.

Supported by the .NET Compact Framework.

Convert.ToDecimal (String) Converts the specified String representation of a number to an equivalent Decimal number.

Supported by the .NET Compact Framework.

Convert.ToDecimal (UInt16) Converts the value of the specified 16-bit unsigned integer to the equivalent Decimal number.

Supported by the .NET Compact Framework.

Convert.ToDecimal (UInt32) Converts the value of the specified 32-bit unsigned integer to an equivalent Decimal number.

Supported by the .NET Compact Framework.

Convert.ToDecimal (UInt64) Converts the value of the specified 64-bit unsigned integer to an equivalent Decimal number.

Supported by the .NET Compact Framework.

Convert.ToDecimal (Object, IFormatProvider) Converts the value of the specified Object to an Decimal number using the specified culture-specific formatting information.

Supported by the .NET Compact Framework.

Convert.ToDecimal (String, IFormatProvider) Converts the specified String representation of a number to an equivalent Decimal number using the specified culture-specific formatting information.

Supported by the .NET Compact Framework.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker