floor

func floor(n : Number) -> Integer
  return int(n) when n > 0
  return int(n-1)

Returns the largest integer smaller than or equal to the given number. For example:
  floor(1.9) = 1
  floor(-1.1) = -2
See also: abs, ceil, frac, int, round, sign

Herman Venter

This is Slim documentation as snarfed on 27 May 1999 by dB.