Important: The information in this document is obsolete and should not be used for new development.
FixedToInt
You can use theFixedToInt
macro to convert aFixed
number to an integer.
#define FixedToInt(a) ((short) ((Fixed) (a) + fixed1/2 >> 16))
a
- A
Fixed
number to be converted to an integer.- macro result
- An integer having the closest value to the
Fixed number.