This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| functions:itrunc [2017/03/15 14:33] – korshun | functions:itrunc [2019/08/26 18:03] (current) – removed korshun | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== itrunc ====== | ||
| - | {{tag> | ||
| - | '' | ||
| - | ===== Description ===== | ||
| - | Returns x with the fractional part truncated as an integer. | ||
| - | |||
| - | See the article on [[: | ||
| - | |||
| - | ===== 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 | ||
| - | </ | ||