Click or drag to resize

Pow Function

X#
Raise the first argument to the numeric power specified by the second argument.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax
 FUNCTION Pow(
	nBase AS USUAL,
	nExponent AS USUAL
) AS FLOAT
Request Example View Source

Parameters

nBase
Type: Usual
The base number.
nExponent
Type: Usual
The power to which to raise the base number.

Return Value

Type: Float
Remarks
Examples
This example uses Pow() to raise 2 to the 3rd power:
X#
1? Pow(2,3)            // 8.00
See Also