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 / About QuickDraw GX Mathematics


Number-Conversion Macros

QuickDraw GX provides a set of predefined macros for the conversion between different fixed-point number formats. This allows you the convenience of accessing the number-conversion formulas as if they were function calls.

Table 8-1 summarizes the number-format conversions that are supported.
Table 8-1 Macro number-format conversions
From number formatTo number format
Fixedfract
Fixedfloating-point
Fixedinteger
fractfloating-point
fractFixed
fractgxColorValue
floating-pointfract
floating-pointFixed
integerFixed
gxColorValuefract

QuickDraw GX also provides macros that

The use of QuickDraw GX macros is described in the section "Converting Number Formats" beginning on page 8-26. Each macro is described in the section "Number-Conversion Macros" beginning on page 8-36.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996