odd

func odd(n : Integer) -> Boolean
  return mod(n, 2) = 1

Returns True if the given integer is not a multiple of two, False otherwise. For example:
  odd(-2) = odd(4) = odd(-8) = odd(16) = odd(-32) = False
  odd(1) = odd(-1) = True
See also: even

Herman Venter

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