FreePascal Information Logo Friend of FreePascal Compiler Title
Articles with Feedback, FPC News Library, PDF Collection, Mail Lists, Books, Newsgroups, IRC Open online discussion areas Research and Tutorials Tools, Compilers and Utilities Blurbs about us, advertising, etc.
Welcome to the FoFPC Pascal Language DIV

div


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

Example

    Download Source IconDownload This Source for Free Pascal
var
  int : Integer;

begin
  // Divide a primary integer by 2 - it discards the remainder
  int := 17 Div 2;

  Writeln('17 div 2 = ',int);
end.

Output

17 div 2 = 8

See Also

Mod.
 Links and Products we find useful



ButtonGenerator.com
Valid XHTML 1.0 Transitional Internet Map
Programmer's Heaven
grat-i-fi-ca-tion - noun
the state of being gratified; great satisfaction.


"Your research documents are head on ... I look forward to seeing more notes on your research."

Brian Ellixson
FreePascal User
Locations of visitors to this page world map hits counter
Copyright 2009 by 3F, LLC. All rights reserved. Worldwide.
Your request was processed by server #2 in 0.002175 secs.

sponsor
This sponsor helps us with our documentation