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 Among 32-Bit Numeric Types


Fix2Frac

You can use the Fix2Frac function to convert a Fixed number to a Fract number.

FUNCTION Fix2Frac (x: Fixed): Fract;
x
The Fixed number to be converted to a Fract number.
DESCRIPTION
The Fix2Frac function returns the Fract number equivalent to the Fixed number x. If x is greater than the maximum representable Fract number, the Fix2Frac function returns $7FFFFFFF. If x is less than the negative number with the highest absolute value, Fix2Frac returns $80000000.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996