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