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: QuickDraw GX Environment and Utilities /
Chapter 8 - QuickDraw GX Mathematics / QuickDraw GX Mathematics Reference
Number-Conversion Macros / Format Conversions


FixedToFract

You can use the FixedToFract macro to convert a fixed number to a fract number.

#define FixedToFract(a) ((fract) (a) << 14)
a
A Fixed number to be converted to a fract number, -2 <= a <2.
macro result
A fract number having the same value as the fixed number.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996