From Clomosy Docs

No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 29: Line 29:
<h2> See Also </h2>
<h2> See Also </h2>
* [[System_Library#Math_Functions | Math Functions]]
* [[System_Library#Math_Functions | Math Functions]]
{{#seo:|description=Use the Odd function in Clomosy to check if a number is odd.}}
{{#seo:|title=Odd Using in Clomosy - Clomosy Docs}}
{{#seo:|description=The Odd function in Clomosy determines whether a given number is odd, providing a simple and efficient way to handle such checks in your application.}}

Latest revision as of 11:56, 8 January 2025

The Odd function returns true if the given Number is odd (remainder of 1 when divided by 2).

Example

 var
   i : Integer;
 
 {
 
   for (i = 1 to 9)
     if (Odd(i)) ShowMessage('Odd number :'+IntToStr(i));
 }

Output:

See Also