help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

odd

Is a value odd or even ?

Declaration

Source position: line 0

function odd(

  l: LongInt

):Boolean;

function odd(

  l: LongWord

):Boolean;

function odd(

  l: Int64

):Boolean;

function odd(

  l: QWord

):Boolean;

Description

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

Errors

None.

See also

Abs

  

Calculate absolute value

Ord

  

Return ordinal value of an ordinal type.

Example

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.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505