ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:itrunc

This is an old revision of the document!


Table of Contents

itrunc

int itrunc(fixed x)

Description

Returns x with the fractional part truncated as an integer.

See the article on Rounding for all truncing modes.

Examples

itrunc(2.3) -> 2
itrunc(3.8) -> 3
itrunc(5.5) -> 5
itrunc(-2.3) -> -2
itrunc(-3.8) -> -3
itrunc(-5.5) -> -5
functions/itrunc.1489588390.txt.gz ยท Last modified: 2017/03/15 16:33 by korshun