floor


floor(r)
      

Return the integer closest to the real number r toward negative infinity. If r is infinite or NaN, return r.

Examples:


floor(1.2)
// 1.
floor(2/3)
// 0
floor(inf)
// +inf.0
      

Also see:

ceiling
abs
flfloor


Core Module Index | Contents