Important: The information in this document is obsolete and should not be used for new development.
FractDivideYou can use the
FractDividefunction to return the quotient of a dividend and divisor.
fract FractDivide (fract dividend, fract divisor);
- The number to be divided.
- The number by which the dividend is to be divided.
- function result
- The quotient of two numbers.
FractDividefunction divides the
dividendparameter by the
divisorparameter and returns the quotient. If the
dividendparameter is a and the
divisorparameter is b, the quotient a / b is returned.
The format of the number returned depends on the respective number formats of the dividend and divisor. The operation has a bias of 30 bits; in general, the bias of the resulting number is the difference between the biases of the input numbers, shifted left by 30 bits. Thus if the divisor is a
fract, the result is the same format as the dividend. If the
dividendparameters are the same format, the result is in
fractformat, as shown inTable 8-6. The dashed line indicates that the resulting bias is not equivalent to long, fixed, or fract. Use the rules of the operation to determine it
Denominator Numerator long fixed fract long fract --- --- fixed --- fract --- fract long fixed fixed
SPECIAL CONSIDERATIONSIn the case of division of a large number by a very small number,the
FractDividefunction pins its result to either the