Important: The information in this document is obsolete and should not be used for new development.
FixDiv
You can use theFixDivfunction to divide two variables of the same type (Fixed,Fract, orLongInt) or to divide aLongIntorFractnumber by aFixednumber.
FUNCTION FixDiv (a, b: Fixed): Fixed;
a- The first operand, which can be a variable of type
Fixedor a variable of typeFractorLongInt.b- The second operand, which can be a variable of type
Fixedor it can be a variable of the same type as the variable in parametera.DESCRIPTION
TheFixDivfunction returns the quotient of the numbers specified in theaandbparameters. If thebparameter is in the format of aFixednumber, then theaparameter can be in the format of aFixed,Fract, orLongIntnumber. If the b parameter is in the format of aFractorLongIntnumber, then theaparameter must be in the same format.The returned value is in the format of a
Fixednumber if bothaandbare bothFixednumbers, bothFractnumbers, or bothLongIntnumbers. Otherwise, the returned value is the same type 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.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.