Important: The information in this document is obsolete and should not be used for new development.
IntToFixed
You can use theIntToFixedmacro to convert an integer to aFixednumber.
#define IntToFixed(a) ((Fixed)(a) << 16)
a- An integer to be converted to a
Fixednumber.- 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
Theffmacro is described next.