ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:iceil

Differences

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

Link to this comparison view

Next revision
Previous revision
functions:iceil [2017/03/15 16:29] – created korshunfunctions:iceil [2019/08/26 21:03] (current) – removed korshun
Line 1: Line 1:
-====== iceil ====== 
-{{tag>math rounding}} 
-''int iceil(fixed x)'' 
  
-===== Description ===== 
-Returns x rounded up as an integer. 
- 
-See the article on [[:rounding]] for all rounding modes. 
- 
-===== Examples ===== 
-<code> 
-iceil(2.3) -> 3 
-iceil(3.8) -> 4 
-iceil(5.5) -> 6 
-iceil(-2.3) -> -2 
-iceil(-3.8) -> -3 
-iceil(-5.5) -> -5 
-</code> 
functions/iceil.1489588161.txt.gz · Last modified: 2017/03/15 16:29 by korshun