int

func int(n : Number) -> Integer
  return if n > 0 then floor(n) else ceil(n)

Returns the integer obtained by discarding the fractional part of the given number. For example:
  int(1.9) = 1
  int(-1.1) = -1
See also: abs, ceil, floor, frac, round, sign

Herman Venter

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