Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Bug 1462897 - Directly use Math.round in the demo code. #956
The demo for Math.round currently implements custom function which performs round in the specified precision, but it's not good function.
Then, the MDN page  was describing the issue of the demo, and solution for the function in the demo, instead of the Math.round function itself.
Changed the demo to directly use the Math.round.