Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
Math.prototype.ceil() Method in Math Class of Javascript Syntax with Examples
1131 Views
Usage 
The Math.ceil(x) function is used to return the smallest integer greater <= equal to given number.
Syntax 
Math.ceil(x)
Example
var x=Math.ceil(.99);;    
var y=Math.ceil(68);    
var z=Math.ceil(9.335);
document.write(x,y,z);
Output 
1
68
10
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