Important: The information in this document is obsolete and should not be used for new development.
X2Frac
You can use the X2Frac function to convert anExtendednumber to aFractnumber.
FUNCTION X2Frac (x: Extended): Fract;
x- The
Extendednumber to be converted to aFractnumber.DESCRIPTION
The X2Frac function returns the bestFractapproximation of theExtendednumber you supply in thexparameter. Ifxis greater than the maximum representableFractnumber, the X2Frac function returns $7FFFFFFF. Ifxis less than the negative number with the highest absolute value, X2Frac returns $80000000.