From Clomosy Docs

No edit summary
No edit summary
 
Line 27: Line 27:
<h2> See Also </h2>
<h2> See Also </h2>
* [[System_Library#Math_Functions | Math Functions]]
* [[System_Library#Math_Functions | Math Functions]]
{{#seo:|title=Dec Using in Clomosy - Clomosy Docs}}
{{#seo:|description=Discover the Dec procedure in Clomosy, which decrements the ordinal variable parameter passed to it by one for efficient decrement operations.}}
{{#seo:|description=Discover the Dec procedure in Clomosy, which decrements the ordinal variable parameter passed to it by one for efficient decrement operations.}}

Latest revision as of 15:01, 24 December 2024

The Dec procedure decrements the ordinal Variable parameter passed to it.

Example

var
   Number    : Integer;
 
{
   Number = 23;
   ShowMessage('Number : '+IntToStr(Number));
   Dec(Number);
   ShowMessage('Number-1 : '+IntToStr(Number));
}

Output:

See Also