SqlDecimal.AdjustScale(SqlDecimal, Int32, Boolean) Método

Definición

La escala del SqlDecimal operando se ajustará al número de dígitos indicado por el parámetro digits. Según el valor del parámetro fRound, el valor se redondeará al número adecuado de dígitos o truncado.

public:
 static System::Data::SqlTypes::SqlDecimal AdjustScale(System::Data::SqlTypes::SqlDecimal n, int digits, bool fRound);
public static System.Data.SqlTypes.SqlDecimal AdjustScale(System.Data.SqlTypes.SqlDecimal n, int digits, bool fRound);
static member AdjustScale : System.Data.SqlTypes.SqlDecimal * int * bool -> System.Data.SqlTypes.SqlDecimal
Public Shared Function AdjustScale (n As SqlDecimal, digits As Integer, fRound As Boolean) As SqlDecimal

Parámetros

n
SqlDecimal

Estructura SqlDecimal que se va a ajustar.

digits
Int32

Número de dígitos de la estructura ajustada.

fRound
Boolean

Si este parámetro es true, el nuevo valor se redondeará, si falsees , el valor se truncará.

Devoluciones

Nueva SqlDecimal estructura cuya Value propiedad contiene el número ajustado.

Se aplica a

Consulte también