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 anExtended
number to aFract
number.
FUNCTION X2Frac (x: Extended): Fract;
x
- The
Extended
number to be converted to aFract
number.DESCRIPTION
The X2Frac function returns the bestFract
approximation of theExtended
number you supply in thex
parameter. Ifx
is greater than the maximum representableFract
number, the X2Frac function returns $7FFFFFFF. Ifx
is less than the negative number with the highest absolute value, X2Frac returns $80000000.