This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

pow()

Deprecated in 5.0.

Please use Math::Pow instead.

pow(x, y): float

Calculates x raised to the power of y.

Table 1. Parameters

x

Float

Initial value.

y

Float

Power.

Return

x raised to the power of y.

println(pow(2, 3)); //Will print "8.0"