

FracDiv
You can use theFracDiv
function to divide two variables of the same type (Fract
,Fixed
, orLongInt
) or to divide aLongInt
orFixed
number by aFract
number.
FUNCTION FracDiv (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 the same type as the variable in parametera
.DESCRIPTION
TheFracDiv
function returns the quotient of the numbers specified in thea
andb
parameters. If theb
parameter is in the format of aFract
number, then thea
parameter can be in the format of aFract
, aFixed
, or aLongInt
number. If theb
parameter is in the format of aFixed
or aLongInt
number, then thea
parameter must be in the same format.The returned value is in the format of a
Fract
number ifa
andb
are bothFract
numbers, bothFixed
numbers, or bothLongInt
numbers. Otherwise, the returned value is in the same format as the number in thea
parameter.Division by zero results in $8000000 if
a
is negative, and $7FFFFFFF otherwise; thus the special case 0/0 yields $7FFFFFFF.
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 