Difference between revisions of "Odd"
From Free Pascal wiki
Jump to navigationJump to search (fix lang bar) |
(fix) |
||
Line 5: | Line 5: | ||
Usage: | Usage: | ||
− | : | + | : <syntaxhighlight lang="pascal" inline> B := odd(i);</syntaxhighlight> |
or | or | ||
: {{HL|if odd(i) then ...}} | : {{HL|if odd(i) then ...}} |
Revision as of 00:37, 17 October 2020
│
Deutsch (de) │
English (en) │
polski (pl) │
Return to Reserved words
The system function odd
returns the value true
if and only if the argument passed to it is odd. The odd
function must be passed an integer value, it cannot accept reals.
Usage:
B := odd(i);
or
if odd(i) then ...
Where
The value supplied to odd
can be any integer: longint, longword, int64 or qword.
operators |
|
---|---|
see also |
|