ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:ifloor

This is an old revision of the document!


Table of Contents

ifloor

int ifloor(fixed x)

Description

Rounds x down and returns the result as an integer.

See the article on Rounding for all rounding modes.

Examples

ifloor(2.3) -> 2
ifloor(3.8) -> 3
ifloor(5.5) -> 5
ifloor(-2.3) -> -3
ifloor(-3.8) -> -4
ifloor(-5.5) -> -6
functions/ifloor.1492267798.txt.gz ยท Last modified: 2017/04/15 17:49 by korshun