Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Environment and Utilities /
Chapter 8 - QuickDraw GX Mathematics / QuickDraw GX Mathematics Reference
Number-Conversion Macros / Rounding, Truncating, and Square Root Operations


FixedTruncate

You can use the FixedTruncate macro to obtain an integer that is the greatest integer that is not greater than the given Fixed 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.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996