ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:floor

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
functions:floor [2017/04/15 17:50] korshunfunctions:floor [2019/08/26 21:03] (current) – removed korshun
Line 1: Line 1:
-====== floor ====== 
-{{tag>math rounding}} 
-''fixed floor(fixed x)'' 
- 
-===== Description ===== 
-Rounds x down and returns the result as a fixed-point number. 
- 
-See the article on [[:rounding]] for all rounding modes. 
- 
-===== Examples ===== 
-<code> 
-floor(2.3) -> 2.0 
-floor(3.8) -> 3.0 
-floor(5.5) -> 5.0 
-floor(-2.3) -> -3.0 
-floor(-3.8) -> -4.0 
-floor(-5.5) -> -6.0 
-</code> 
  
functions/floor.1492267804.txt.gz · Last modified: 2017/04/15 17:50 by korshun