Returns the result of an integer division, including the remainder.
procedure DivMod(Dividend: Cardinal; Divisor: Word; var Result: Word; var Remainder: Word);
DivMod(unsigned Dividend, Word Divisor, Word Result, Word Remainder);
Call DivMod to perform 16-bit integer division and fetch the remainder as well, all in one operation.
Dividend is the integer into which you are dividing.
Divisor is the value by which to divide Dividend.
Result returns the result of the integer division.
Remainder returns the remainder (the difference between Result * Divisor and Dividend).
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|