Carbon


X2Frac

Header: FixMath.h Carbon status: Supported

Converts an Extended number to a Fract number.

Fract X2Frac (
    double x
);
x

The Extended number to be converted to a Fract number.

function result

The best Fract approximation of the Extended number x. If x is greater than the maximum representable Fract number, the X2Frac function returns $7FFFFFFF. If x is less than the negative number with the highest absolute value, X2Frac returns $80000000.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)