Important: The information in this document is obsolete and should not be used for new development.
ff
You can use theffmacro to convert an integer to aFixednumber.
#define ff(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.DESCRIPTION
Theffmacro converts an integerato aFixednumber. This macro name is shorthand notation for theIntToFixedmacro, and provides identical functionality.SEE ALSO
For an example of how to use theffmacro, see the section "Converting Number Formats" beginning on page 8-26.The
IntToFixedmacro is described in the previous section.