SqlDecimal.ConvertToPrecScale(SqlDecimal, Int32, Int32) 메서드

정의

SqlDecimal 피연산자의 값을 지정된 전체 자릿수와 소수 자릿수로 조정합니다.

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

매개 변수

n
SqlDecimal

조정될 값이 있는 SqlDecimal 구조체입니다.

precision
Int32

SqlDecimal 구조체의 전체 자릿수입니다.

scale
Int32

SqlDecimal 구조체의 소수 자릿수입니다.

반환

매개 변수에 지정된 전체 자릿수와 소수 자릿수로 조정된 값을 갖는 새 SqlDecimal 구조체입니다.

적용 대상

추가 정보