Important: The information in this document is obsolete and should not be used for new development.
FixedTruncate
You can use theFixedTruncate
macro to obtain an integer that is the greatest integer that is not greater than the givenFixed
number.
#define FixedTruncate(a) ((short)((Fixed)(a) >> 16))
a
- The number that is to be truncated.
- macro result
- The largest integer that is not greater than the
Fixed number.