t2:sqrt

sqrt


sqrt — Square root

Description


fix32 sqrt(fix32 num);

Returns the square root of num.

Parameters


  • num: The number to process.

Return Value


The square root of num.

Examples


Example #1 sqrt() example

init {
    printf("%.6f", sqrt(9.0));  // 3.000000
    printf("%.6f", sqrt(10.0)); // 3.162277
}

See Also

t2/sqrt.txt · Last modified: 2017/03/20 11:29 by J2Kbr