SqlDecimal.AdjustScale(SqlDecimal, Int32, Boolean) 메서드

정의

SqlDecimal 피연산자의 소수 자릿수는 자릿수 매개 변수가 나타내는 자릿수로 조정됩니다. fRound 매개 변수의 값에 따라 해당 자릿수에서 값이 반올림되거나 해당 자릿수 아래의 값을 버립니다.

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

매개 변수

n
SqlDecimal

조정될 SqlDecimal 구조체입니다.

digits
Int32

조정된 구조체의 자릿수입니다.

fRound
Boolean

새 값은 이 매개 변수가 true이면 반올림되고, false이면 버려집니다.

반환

조정된 숫자를 포함하는 SqlDecimal 속성을 갖는 새 Value 구조체입니다.

적용 대상

추가 정보