Important: The information in this document is obsolete and should not be used for new development.
FractToFixed
You can use theFractToFixed
macro to convert afract
number to aFixed
number.
#define FractToFixed (a) ((Fixed) (a) + 8192L >> 14)
a
- A
fract
number to be converted to aFixed
number.- macro result
- A
Fixed number having the closest value to the fract number.