System.Odd

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Odd(X: Integer): Boolean;

Properties

Type Visibility Source Unit Parent
function public System.pas System System

Description

Returns True if argument is an odd number.

In Delphi code, Odd tests whether the argument is an odd number. It returns True if X is an odd number, False if X is even.

See Also


Code Examples