Skip to content

Commit cfefb5a

Browse files
authored
round example changed back ot originial
1 parent b574453 commit cfefb5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/05-data-types/02-number/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ There are several built-in functions for rounding:
122122
: Rounds up: `3.1` becomes `4`, and `-1.1` becomes `-1`.
123123

124124
`Math.round`
125-
: Rounds to the nearest integer: `3.1` becomes `3`, `3.5` becomes `4` and `-1.1` becomes `-1`.
125+
: Rounds to the nearest integer: `3.1` becomes `3`, `3.6` becomes `4` and `-1.1` becomes `-1`.
126126

127127
`Math.trunc` (not supported by Internet Explorer)
128128
: Removes anything after the decimal point without rounding: `3.1` becomes `3`, `-1.1` becomes `-1`.

0 commit comments

Comments
 (0)