Odd function
Is a value odd or even ?
Declaration
function Odd(l: LongInt): BooleanDescription
Odd returns
True if
X is odd, or
False otherwise.Errors
None.
See also
Example: ex43
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.
