Important: The information in this document is obsolete and should not be used for new development.
FixedRound
You can use theFixedRound
macro to round aFixed
number to its nearest integer.
#define FixedRound(a) ((short) ((Fixed)(a) + fixed1/2 >> 16))
a
- The number to be rounded.
- macro result
- The closest integer to the
Fixed number.