Definition and usage of Math.round() method:
The Math.round() method will round the parameters.
Click to see more related Math object methods and properties.
Grammar structure:
Math.round(x)
Parameter list:
Example code:
Example 1:
Output result: -2.
Example 2:
Output result: -3.
Example 3:
Output result: 3.
The above content is the entire description of the JavaScript Math.round() method introduced by the editor. I hope you like it.