Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Operating System Utilities /
Chapter 3 - Mathematical and Logical Utilities / Mathematical and Logical Utilities Reference
Routines / Converting Between Fixed-Point and Floating-Point Values


X2Frac

You can use the X2Frac function to convert an Extended number to a Fract number.

FUNCTION X2Frac (x: Extended): Fract;
x
The Extended number to be converted to a Fract number.
DESCRIPTION
The X2Frac function returns the best Fract approximation of the Extended number you supply in the x parameter. 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.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996