ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:ifloor

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
functions:ifloor [2017/04/15 17:49] korshunfunctions:ifloor [2019/08/26 21:03] (current) – removed korshun
Line 1: Line 1:
-====== ifloor ====== 
-{{tag>math rounding}} 
-''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 ===== 
-<code> 
-ifloor(2.3) -> 2 
-ifloor(3.8) -> 3 
-ifloor(5.5) -> 5 
-ifloor(-2.3) -> -3 
-ifloor(-3.8) -> -4 
-ifloor(-5.5) -> -6 
-</code> 
functions/ifloor.1492267798.txt.gz · Last modified: 2017/04/15 17:49 by korshun