Conversions.ToDecimal Method  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts specified object to a Decimal value.
Overloads
| ToDecimal(Boolean) | |
| ToDecimal(Object) | Converts an object to a Decimal value. | 
| ToDecimal(String) | Converts a string to a Decimal value. | 
ToDecimal(Boolean)
- Source:
- Conversions.vb
- Source:
- Conversions.vb
- Source:
- Conversions.vb
- Source:
- Conversions.vb
public:
 static System::Decimal ToDecimal(bool Value);public static decimal ToDecimal(bool Value);static member ToDecimal : bool -> decimalPublic Shared Function ToDecimal (Value As Boolean) As DecimalParameters
- Value
- Boolean
A Boolean value to convert.
Returns
The Decimal value of the Boolean value.
Applies to
ToDecimal(Object)
- Source:
- Conversions.vb
- Source:
- Conversions.vb
- Source:
- Conversions.vb
- Source:
- Conversions.vb
Converts an object to a Decimal value.
public:
 static System::Decimal ToDecimal(System::Object ^ Value);public static decimal ToDecimal(object Value);public static decimal ToDecimal(object? Value);static member ToDecimal : obj -> decimalPublic Shared Function ToDecimal (Value As Object) As DecimalParameters
- Value
- Object
The object to convert.
Returns
The Decimal value of the object.
Applies to
ToDecimal(String)
- Source:
- Conversions.vb
- Source:
- Conversions.vb
- Source:
- Conversions.vb
- Source:
- Conversions.vb
Converts a string to a Decimal value.
public:
 static System::Decimal ToDecimal(System::String ^ Value);public static decimal ToDecimal(string Value);public static decimal ToDecimal(string? Value);static member ToDecimal : string -> decimalPublic Shared Function ToDecimal (Value As String) As DecimalParameters
- Value
- String
The string to convert.
Returns
The Decimal value of the string.