SqlDecimal.ConvertToPrecScale(SqlDecimal, Int32, Int32) Metodo

Definizione

Modifica il valore dell’operando SqlDecimal in base alla scala e alla precisione indicate.

public:
 static System::Data::SqlTypes::SqlDecimal ConvertToPrecScale(System::Data::SqlTypes::SqlDecimal n, int precision, int scale);
public static System.Data.SqlTypes.SqlDecimal ConvertToPrecScale (System.Data.SqlTypes.SqlDecimal n, int precision, int scale);
static member ConvertToPrecScale : System.Data.SqlTypes.SqlDecimal * int * int -> System.Data.SqlTypes.SqlDecimal
Public Shared Function ConvertToPrecScale (n As SqlDecimal, precision As Integer, scale As Integer) As SqlDecimal

Parametri

n
SqlDecimal

Struttura SqlDecimal il cui valore deve essere regolato.

precision
Int32

Precisione per la nuova struttura SqlDecimal.

scale
Int32

Scala per la nuova struttura SqlDecimal.

Restituisce

Struttura SqlDecimal nuova con proprietà Value modificata in base alla precisione e alla scala indicate nei parametri.

Si applica a

Vedi anche