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