We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b574453 commit cfefb5aCopy full SHA for cfefb5a
1-js/05-data-types/02-number/article.md
@@ -122,7 +122,7 @@ There are several built-in functions for rounding:
122
: Rounds up: `3.1` becomes `4`, and `-1.1` becomes `-1`.
123
124
`Math.round`
125
-: 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`.
126
127
`Math.trunc` (not supported by Internet Explorer)
128
: Removes anything after the decimal point without rounding: `3.1` becomes `3`, `-1.1` becomes `-1`.
0 commit comments