ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:fpow

This is an old revision of the document!


Table of Contents

fpow

fixed fpow(fixed x, int power)

Description

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

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.1489592012.txt.gz · Last modified: 2017/03/15 17:33 by korshun