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
Last revisionBoth sides next revision
functions:itrunc [2017/03/15 16:32] – created korshunfunctions:itrunc [2017/04/15 17:52] korshun
Line 1: Line 1:
 ====== itrunc ====== ====== itrunc ======
-{{tag>math truncing}}+{{tag>math rounding}}
 ''int itrunc(fixed x)'' ''int itrunc(fixed x)''
  
 ===== Description ===== ===== Description =====
-Returns with the fractional part truncated as an integer.+Rounds by truncating the fractional part and returns the result as an integer.
  
-See the article on [[:truncing]] for all truncing modes.+See the article on [[:rounding]] for all rounding modes.
  
 ===== Examples ===== ===== Examples =====