SqlDecimal.Power(SqlDecimal, Double) SqlDecimal.Power(SqlDecimal, Double) SqlDecimal.Power(SqlDecimal, Double) SqlDecimal.Power(SqlDecimal, Double) Method

定义

将指定的 SqlDecimal 结构的值乘到指定的幂。Raises the value of the specified SqlDecimal structure to the specified exponential power.

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 SqlDecimal SqlDecimal

要乘幂的 SqlDecimal 结构。The SqlDecimal structure to be raised to a power.

exp
Double Double Double Double

一个 double 类型值,指示数字应乘到的幂。A double value that indicates the power to which the number should be raised.

返回

一个包含结果的 SqlDecimal 结构。A SqlDecimal structure that contains the results.

适用于

另请参阅