Important: The information in this document is obsolete and should not be used for new development.
FractSquareRoot
You can use theFractSquareRootfunction to calculate the square root of afractnumber.
fract FractSquareRoot (fract source);
source- The number for which the square root is required.
- function result
- The square root of the
fract number.DESCRIPTION
TheFractSquareRootfunction returns the square root of thefractnumber specified by thesourceparameter. 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.