Important: The information in this document is obsolete and should not be used for new development.
fl
You can use theflmacro to convert a floating-point number to aFixednumber.
#define fl(a) ((Fixed)((float) (a) * fixed1))
a- A floating-point number to be converted to a
Fixednumber.- macro result
- The closest
Fixed number to the floating-point number.DESCRIPTION
Theflmacro converts a floating-point numberato aFixednumber. This macro name is shorthand notation for theFloatToFixedmacro, and provides identical functionality.SEE ALSO
TheFloatToFixedmacro is described in the previous section.