Popular Tags

Javascript Round Down a Decimal Number

programix ·
To round a number down to the nearest integer, just use floor from the inbuilt Math library.

Math.floor( someDecimalNumber );





Pinned Post
[Snippets] Pure JS AJAX Request
Simple GET request 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 var xmlHttp = new XMLHttpRequest(); //define request xmlHttp...