This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
functions:itrunc [2017/04/15 17:52] – korshun | functions:itrunc [2019/08/26 21:03] (current) – removed korshun | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== itrunc ====== | ||
- | {{tag> | ||
- | '' | ||
- | ===== Description ===== | ||
- | Rounds x by truncating the fractional part and returns the result 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 | ||
- | </ |