Name

Odd Function

Syntax

function Odd(Value: Integer): Boolean;
function Odd(Value: Int64): Boolean;

Description

The standard Pascal Odd function returns True if Value is odd, that is, it is not evenly divisible by 2. It returns False if the number is even. Odd is not a real function.

See Also

Boolean Type, Integer Type

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.