SqlDecimal.ConvertToPrecScale(SqlDecimal, Int32, Int32) Metod

Definition

Justerar operandens SqlDecimal värde till den angivna precisionen och skalan.

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

Parametrar

n
SqlDecimal

Den SqlDecimal struktur vars värde ska justeras.

precision
Int32

Precisionen för den nya SqlDecimal strukturen.

scale
Int32

Skalan för den nya SqlDecimal strukturen.

Returer

En ny SqlDecimal struktur vars värde har justerats till den precision och skala som anges i parametrarna.

Gäller för

Se även