Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
Odd
Odd
Juni 16, 2016
Parameter
(X: Longint) : Boolean;
Beschreibung
Die Funktion gibt true zurück, wenn das Argument eine ungerade Zahl ist. In Delphi prüft Odd, ob der mit X angegebene Wert eine ungerade Zahl ist. Bei einer ungeraden Zahl wird true zurückgegeben, bei einer geraden false.
Beispiel
if Odd(5) then
ShowMessage('5 is odd.')
else
ShowMessage('Something is odd!');
, multiple selections available, Use left or right arrow keys to navigate selected items