Important: The information in this document is obsolete and should not be used for new development.
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.
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.
- round a
Fixed
number to its nearest integer- determine the greatest integer that is not greater than a given
Fixed
number- use a function to determine the square root of a
Fixed
number