round example changed back ot originial
This commit is contained in:
parent
b574453e48
commit
cfefb5afed
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ There are several built-in functions for rounding:
|
|||
: Rounds up: `3.1` becomes `4`, and `-1.1` becomes `-1`.
|
||||
|
||||
`Math.round`
|
||||
: Rounds to the nearest integer: `3.1` becomes `3`, `3.5` becomes `4` and `-1.1` becomes `-1`.
|
||||
: Rounds to the nearest integer: `3.1` becomes `3`, `3.6` becomes `4` and `-1.1` becomes `-1`.
|
||||
|
||||
`Math.trunc` (not supported by Internet Explorer)
|
||||
: Removes anything after the decimal point without rounding: `3.1` becomes `3`, `-1.1` becomes `-1`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue