Important: The information in this document is obsolete and should not be used for new development.
FracMul
You can use theFracMul
function to multiply a variable of typeFract
with another variable of typeFract
or with a variable of typeFixed
orLongInt
.
FUNCTION FracMul (a, b: Fract): Fract;
a
- The first operand, which can be a variable of type
Fract
or a variable of typeFixed
orLongInt
.b
- The second operand, which can be a variable of type
Fract
or a variable of typeFixed
orLongInt
.DESCRIPTION
TheFracMul
function returns the product of the numbers specified in thea
andb
parameters. At least one ofa
orb
should be a variable of typeFract
.The returned value is in the format of a
LongInt
number if one ofa
andb
is aLongInt
number. It is aFixed
number if one ofa
orb
is aFixed
number. It is aFract
number if botha
andb
areFract
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 the Fixed and Fract data type, see Table 3-2 on page 3-26.