Important: The information in this document is obsolete and should not be used for new development.
FracMul
You can use theFracMulfunction to multiply a variable of typeFractwith another variable of typeFractor with a variable of typeFixedorLongInt.
FUNCTION FracMul (a, b: Fract): Fract;
a- The first operand, which can be a variable of type
Fractor a variable of typeFixedorLongInt.
b- The second operand, which can be a variable of type
Fractor a variable of typeFixedorLongInt.DESCRIPTION
TheFracMulfunction returns the product of the numbers specified in theaandbparameters. At least one ofaorbshould be a variable of typeFract.The returned value is in the format of a
LongIntnumber if one ofaandbis aLongIntnumber. It is aFixednumber if one ofaorbis aFixednumber. It is aFractnumber if bothaandbareFractnumbers.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 the Fixed and Fract data type, see Table 3-2 on page 3-26.
 
  
  
 