ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:ipow

Table of Contents

ipow

int ipow(int x, int power)

Description

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

For a version with fixed-number base (e.g. 0.5^y), see fpow.

Examples

ipow(2, 3) -> 8
ipow(2, 1) -> 2
ipos(2, 0) -> 1
functions/ipow.txt · Last modified: 2017/04/15 17:21 by korshun