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


IntToFixed

You can use the IntToFixed macro to convert an integer to a Fixed number.

#define IntToFixed(a) ((Fixed)(a) << 16)
a
An integer to be converted to a Fixed number.
macro result
A Fixed number having the same value as the integer.
SPECIAL CONSIDERATIONS
QuickDraw GX also defines a shorthand version of this macro. IntToFixed(a) can also be coded as ff(a).

SEE ALSO
The ff macro is described next.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996