asp.net.ph

Math.Pow Method

System Namespace   Math Class


Returns a specified number raised to the specified power.

[ VB ]
Public Shared Function Pow ( _
   ByVal x As Double, _
   ByVal y As Double _
) As Double

[ C# ]
public static double Pow (
   double x,
   double y
);

[ C++ ]
public: static double Pow (
   double x,
   double y
);

[ JScript ]
public static function Pow (
   x : double,
   y : double
) : double;

Parameters

x
A number to be raised to a power.
y
A number that specifies a power.

Return Value

The number x raised to the power y. The following table specifies the results if x or y is equal to NaN, NegativeInfinity, or PositiveInfinity.

Parameter Values Returns
x or y is equal to Double.NaN NaN.
x is equal to Double.NegativeInfinity NegativeInfinity if y is an odd integer; otherwise, PositiveInfinity.
y is equal to Double.NegativeInfinity 0.
x is equal to Double.PositiveInfinity 0 if y is equal to NegativeInfinity; otherwise, PositiveInfinity.
y is equal to Double.PositiveInfinity PositiveInfinity.

See Also

Math Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph