ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:fpow

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
functions/fpow.txt · Last modified: 2017/04/15 17:14 by korshun