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

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
functions:itrunc [2017/03/15 16:33] 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 [[:rounding]] for all truncing modes.+See the article on [[:rounding]] for all rounding modes.
  
 ===== Examples ===== ===== Examples =====