Important: The information in this document is obsolete and should not be used for new development.
FractSquareRoot
You can use theFractSquareRoot
function to calculate the square root of afract
number.
fract FractSquareRoot (fract source);
source
- The number for which the square root is required.
- function result
- The square root of the
fract number.
DESCRIPTION
TheFractSquareRoot
function returns the square root of thefract
number specified by thesource
parameter. The number is interpreted as unsigned and in the range 0 through 4 - (2-30). This means that bit 31 has a weight of 2, instead of -2. The result is an unsigned number in the range of 0 through 2.