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


FixedToFloat

You can use the FixedToFloat macro to convert a Fixed number to a floating-point number.

#define FixedToFloat(a) ((float)(a) / fixed1)
a
A Fixed number to be converted to a floating-point number.
macro result
A floating-point number having the same value as the Fixed number.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996