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


FractToFixed

You can use the FractToFixed macro to convert a fract number to a Fixed number.

#define FractToFixed (a) ((Fixed) (a) + 8192L >> 14)
a
A fract number to be converted to a Fixed number.
macro result
A Fixed number having the closest value to the fract number.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996