CoCoA:IsEven, IsOdd

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

IsEven, IsOdd

test whether an integer is even or odd

Description

These functions test whether an integer is even or odd.

Example

  IsEven(3);
FALSE
-------------------------------
  IsOdd(3);
TRUE
-------------------------------

Syntax

IsEven(N:INT):BOOL
IsOdd(N:INT):BOOL

IsZero

   <type>boolean</type>
   <type>integer</type>