From Clomosy Docs
keyword Div
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:
27 div 2 = 13
See Also