Sign in Join
FPDoc Onlineexperiment

Odd function

In unit System

Is a value odd or even ?

Declaration

pascal
function Odd(l: LongInt): Boolean

Description

Odd returns True if X is odd, or False otherwise.

Errors

None.

See also

Example: ex43

pascal
Program Example43;

{ Program to demonstrate the Odd function. }

begin
  If Odd(1) Then
    Writeln ('Everything OK with 1 !');
  If Not Odd(2) Then
    Writeln ('Everything OK with 2 !');
end.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.