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


ff

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

#define ff(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.
DESCRIPTION
The ff macro converts an integer a to a Fixed number. This macro name is shorthand notation for the IntToFixed macro, and provides identical functionality.

SEE ALSO
For an example of how to use the ff macro, see the section "Converting Number Formats" beginning on page 8-26.

The IntToFixed macro is described in the previous section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996