ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:itrunc

Differences

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

Link to this comparison view

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