SqlDecimal.Power(SqlDecimal, Double) Method

Definition

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

Parameters

n
SqlDecimal

The SqlDecimal structure to be raised to a power.

exp
Double

A double value that indicates the power to which the number should be raised.

Returns

A SqlDecimal structure that contains the results.

Applies to

See also