Important: The information in this document is obsolete and should not be used for new development.
FixedToFract
You can use theFixedToFract
macro to convert a fixed number to afract
number.
#define FixedToFract(a) ((fract) (a) << 14)
a
- A
Fixed
number to be converted to afract
number, -2 <= a <2.- macro result
- A
fract number having the same value as the fixed number.