

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 32 on page 326.
Get information on Apple products.
Visit the Apple Store online or at retail locations. 1800MYAPPLE Copyright © 2004 Apple Computer, Inc. All rights reserved.  Terms of use  Privacy Notice 