Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
Math.prototype.round() Method in Math Class of Javascript Syntax with Examples
1158 Views
Usage 
The Math.round() function is used to round the value of a number to the nearest integer number.
Syntax 
Math.round(x)
Example
var x1 = Math.round(99.69);
var x2 = Math.round(99.4);
var x3 = Math.round(-99.7);
var x4 = Math.round(-99.59);
document.write(x1,x2,x3,x4);
Output 
100
99
-100
-100
Best Lessons of "Javascript Syntax with Examples"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details