This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| functions:round [2017/04/15 14:50] – korshun | functions:round [2019/08/26 18:04] (current) – removed korshun | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== round ====== | ||
| - | {{tag> | ||
| - | '' | ||
| - | ===== Description ===== | ||
| - | Rounds x to the nearest integer and returns the result as a fixed-point number. | ||
| - | |||
| - | See the article on [[: | ||
| - | |||
| - | ===== Examples ===== | ||
| - | < | ||
| - | round(2.3) -> 2.0 | ||
| - | round(3.8) -> 4.0 | ||
| - | round(5.5) -> 6.0 | ||
| - | round(-2.3) -> -2.0 | ||
| - | round(-3.8) -> -4.0 | ||
| - | round(-5.5) -> -5.0 | ||
| - | </ | ||