Important: The information in this document is obsolete and should not be used for new development.
FracDiv
You can use theFracDivfunction to divide two variables of the same type (Fract,Fixed, orLongInt) or to divide aLongIntorFixednumber by aFractnumber.
FUNCTION FracDiv (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 the same type as the variable in parametera.DESCRIPTION
TheFracDivfunction returns the quotient of the numbers specified in theaandbparameters. If thebparameter is in the format of aFractnumber, then theaparameter can be in the format of aFract, aFixed, or aLongIntnumber. If thebparameter is in the format of aFixedor aLongIntnumber, then theaparameter must be in the same format.The returned value is in the format of a
Fractnumber ifaandbare bothFractnumbers, bothFixednumbers, or bothLongIntnumbers. Otherwise, the returned value is in the same format as the number in theaparameter.Division by zero results in $8000000 if
ais negative, and $7FFFFFFF otherwise; thus the special case 0/0 yields $7FFFFFFF.