SqlDecimal.Round(SqlDecimal, Int32) 方法

定義

取得最接近指定 SqlDecimal 結構值且精確度的數字。

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

參數

n
SqlDecimal

SqlDecimal結構要圓滑。

position
Int32

回傳值中顯著小數位數(精確度)的數量。

傳回

一個 SqlDecimal 包含四捨五入運算結果的結構。

適用於

另請參閱