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: Operating System Utilities /
Chapter 3 - Mathematical and Logical Utilities / Mathematical and Logical Utilities Reference
Routines / Performing Calculations on Fixed-Point Numbers


FracSqrt

You can use the FracSqrt function to obtain the square root of a Fract number.

FUNCTION FracSqrt (x: Fract): Fract;
x
The Fract number to obtain a square root of. This parameter is interpreted as being unsigned in the range 0 through 4 - 2-30, inclusive. That is, the bit of a Fract number that ordinarily has weight -2 is instead interpreted as having weight 2.
DESCRIPTION
The FracSqrt function returns the square root of the Fract number you supply in the x parameter. The result is unsigned in the range 0 through 2, inclusive.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996