Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

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

Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2004 Apple Computer, Inc.
All rights reserved. | Terms of use | Privacy Notice