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


FixedSquareRoot

You can use the FixedSquareRoot macro to determine the square root of a fixed number.

#define FixedSquareRoot(a) ((Fixed)FractSquareRoot(a) + 64 >>7)
a
The number for which the square root is to be determined.
macro result
The square root of the number.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996