Important: The information in this document is obsolete and should not be used for new development.
FixMul
You can use theFixMul
function to multiply a variable of typeFixed
with another variable of typeFixed
or with a variable of typeFract
orLongInt
.
FUNCTION FixMul (a, b: Fixed): Fixed;
a
- The first operand, which can be a variable of type
Fixed
or a variable of typeFract
orLongInt
.b
- The second operand, which can be a variable of type
Fixed
or a variable of typeFract
orLongInt
.DESCRIPTION
TheFixMul
function returns the product of the numbers specified in thea
andb
parameters. At least one ofa
andb
should be a variable of typeFixed
.The returned value is in the format of a
LongInt
if one ofa
orb
is aLongInt
. It is aFract
number if one ofa
orb
isFract
. It is aFixed
number if botha
andb
areFixed
numbers.Overflows are set to the maximum representable value with the correct sign ($80000000 for negative results and $7FFFFFFF for positive results).
SEE ALSO
For a summary of the routines that perform operations on theFixed
andFract
data type, see Table 3-2 on page 3-26.