Carbon


FracSqrt

Header: FixMath.h Carbon status: Supported

Obtains the square root of a Fract number.

Fract FracSqrt (
    Fract x
);
Parameter descriptions
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 the Fract number that ordinarily has weight -2 is instead interpreted as having weight 2.

function result

The square root of the specified Fract number. The result is unsigned in the range 0 through 2, inclusive.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)