From Clomosy Docs

Revision as of 15:10, 24 December 2024 by ClomosyAdmin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Div keyword gives the whole number result of dividing the Dividend by the Divisor. Any remainder is discarded.


Example

var
   intValue : Integer;
 
{
   // Divide a primary integer by 2 - it discards the remainder
   intValue = 27 Div 2;
 
   ShowMessage('27 div 2 = '+IntToStr(intValue));
}

Output:

See Also