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


fl

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

#define fl(a) ((Fixed)((float) (a) * fixed1))
a
A floating-point number to be converted to a Fixed number.
macro result
The closest Fixed number to the floating-point number.
DESCRIPTION
The fl macro converts a floating-point number a to a Fixed number. This macro name is shorthand notation for the FloatToFixed macro, and provides identical functionality.

SEE ALSO
The FloatToFixed macro is described in the previous section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996