SqlDecimal.Power(SqlDecimal, Double) 方法

定義

將指定 SqlDecimal 結構的值提升至指定的指數冪次方。

public:
 static System::Data::SqlTypes::SqlDecimal Power(System::Data::SqlTypes::SqlDecimal n, double exp);
public static System.Data.SqlTypes.SqlDecimal Power(System.Data.SqlTypes.SqlDecimal n, double exp);
static member Power : System.Data.SqlTypes.SqlDecimal * double -> System.Data.SqlTypes.SqlDecimal
Public Shared Function Power (n As SqlDecimal, exp As Double) As SqlDecimal

參數

n
SqlDecimal

SqlDecimal該建築將被提升為一股強大力量。

exp
Double

一個雙倍值,表示該數字應該提升到的冪次方。

傳回

一個 SqlDecimal 包含結果的結構。

適用於

另請參閱