1. Home
  2. ›
  3. Javascript
  4. ›
  5. Math floor

Math.floor() method takes a fraction as an argument and returns the largest integer equal or smaller than the original value.

#javascript#math
Math.floor( 1.75); //  Returns 1
copy
Full Javascript cheatsheet