Important: The information in this document is obsolete and should not be used for new development.
fl
You can use thefl
macro to convert a floating-point number to aFixed
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
Thefl
macro converts a floating-point numbera
to aFixed
number. This macro name is shorthand notation for theFloatToFixed
macro, and provides identical functionality.SEE ALSO
TheFloatToFixed
macro is described in the previous section.