ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:ceil

Table of Contents

ceil

fixed ceil(fixed x)

Description

Rounds x up and returns the result as a fixed-point number.

See the article on Rounding for all rounding modes.

Examples

ceil(2.3) -> 3.0
ceil(3.8) -> 4.0
ceil(5.5) -> 5.0
ceil(-2.3) -> -2.0
ceil(-3.8) -> -3.0
ceil(-5.5) -> -5.0
functions/ceil.1492267807.txt.gz ยท Last modified: 2017/04/15 17:50 by korshun