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