ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:fpow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
functions:fpow [2017/03/15 17:33] – created korshunfunctions:fpow [2017/04/15 17:14] (current) korshun
Line 1: Line 1:
 ====== fpow ====== ====== fpow ======
-{{tag>>math}}+{{tag>math}}
 ''fixed fpow(fixed x, int power)'' ''fixed fpow(fixed x, int power)''
  
-====== Description ======+===== Description =====
 Returns x raised to the integer power. Only positive powers are supported. Returns x raised to the integer power. Only positive powers are supported.
  
-====== Examples ======+For an integer version, see [[ipow]]. 
 + 
 +===== Examples =====
 <code> <code>
 fpow(2.0, 3) -> 8.0 fpow(2.0, 3) -> 8.0
Line 17: Line 19:
 fpow(0.5, 3) -> 0.125 fpow(0.5, 3) -> 0.125
 </code> </code>
 +
functions/fpow.1489592002.txt.gz · Last modified: 2017/03/15 17:33 by korshun