Important: The information in this document is obsolete and should not be used for new development.
FixMul
You can use theFixMulfunction to multiply a variable of typeFixedwith another variable of typeFixedor with a variable of typeFractorLongInt.
FUNCTION FixMul (a, b: Fixed): Fixed;
a- The first operand, which can be a variable of type
Fixedor a variable of typeFractorLongInt.b- The second operand, which can be a variable of type
Fixedor a variable of typeFractorLongInt.DESCRIPTION
TheFixMulfunction returns the product of the numbers specified in theaandbparameters. At least one ofaandbshould be a variable of typeFixed.The returned value is in the format of a
LongIntif one ofaorbis aLongInt. It is aFractnumber if one ofaorbisFract. It is aFixednumber if bothaandbareFixednumbers.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 theFixedandFractdata type, see Table 3-2 on page 3-26.