Important: The information in this document is obsolete and should not be used for new development.
IntToFixed
You can use theIntToFixed
macro to convert an integer to aFixed
number.
#define IntToFixed(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.
SPECIAL CONSIDERATIONS
QuickDraw GX also defines a shorthand version of this macro.IntToFixed(a)
can also be coded asff(a)
.SEE ALSO
Theff
macro is described next.