Share via


Conversions.ToDecimal Método

Definición

Convierte el objeto de especificado en un valor Decimal.

Sobrecargas

ToDecimal(Boolean)

Convierte un valor Boolean en un valor Decimal.

ToDecimal(Object)

Convierte un objeto en un valor Decimal.

ToDecimal(String)

Convierte una cadena en un valor Decimal.

ToDecimal(Boolean)

Source:
Conversions.vb
Source:
Conversions.vb
Source:
Conversions.vb

Convierte un valor Boolean en un valor Decimal.

public:
 static System::Decimal ToDecimal(bool Value);
public static decimal ToDecimal (bool Value);
static member ToDecimal : bool -> decimal
Public Shared Function ToDecimal (Value As Boolean) As Decimal

Parámetros

Value
Boolean

Valor Boolean que se va a convertir.

Devoluciones

El valor Decimal del valor Boolean.

Se aplica a

ToDecimal(Object)

Source:
Conversions.vb
Source:
Conversions.vb
Source:
Conversions.vb

Convierte un objeto en un valor Decimal.

public:
 static System::Decimal ToDecimal(System::Object ^ Value);
public static decimal ToDecimal (object Value);
public static decimal ToDecimal (object? Value);
static member ToDecimal : obj -> decimal
Public Shared Function ToDecimal (Value As Object) As Decimal

Parámetros

Value
Object

Objeto que se va a convertir.

Devoluciones

El valor de Decimal del objeto.

Se aplica a

ToDecimal(String)

Source:
Conversions.vb
Source:
Conversions.vb
Source:
Conversions.vb

Convierte una cadena en un valor Decimal.

public:
 static System::Decimal ToDecimal(System::String ^ Value);
public static decimal ToDecimal (string Value);
public static decimal ToDecimal (string? Value);
static member ToDecimal : string -> decimal
Public Shared Function ToDecimal (Value As String) As Decimal

Parámetros

Value
String

Cadena que se va a convertir.

Devoluciones

Valor Decimal de la cadena.

Se aplica a