This documentation is archived and is not being maintained.

SqlDecimal.Power Method

Raises the value of the specified SqlDecimal structure to the specified exponential power.

[Visual Basic]
Public Shared Function Power( _
   ByVal n As SqlDecimal, _
   ByVal exp As Double _
) As SqlDecimal
public static SqlDecimal Power(
 SqlDecimal n,
 double exp
public: static SqlDecimal Power(
 SqlDecimal n,
 double exp
public static function Power(
   n : SqlDecimal,
 exp : double
) : SqlDecimal;


The SqlDecimal structure to be raised to a power.
A double value indicating the power to which the number should be raised.

Return Value

A SqlDecimal structure containing the results.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

SqlDecimal Structure | SqlDecimal Members | System.Data.SqlTypes Namespace