Table of Contents

fpow

fixed fpow(fixed x, int power)

Description

Returns x raised to the integer power. Only positive powers are supported.

For an integer version, see ipow.

Examples

fpow(2.0, 3) -> 8.0
fpow(2.0, 1) -> 2.0
fpos(2.0, 0) -> 1.0

fpow(0.5, 0) -> 1.0
fpow(0.5, 1) -> 0.5
fpow(0.5, 2) -> 0.25
fpow(0.5, 3) -> 0.125