1. Home
  2. Javascript
  3. 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