Synopsis
float sqrtf(float x);
Description

sqrtf computes the nonnegative square root of x. C90 and C99 require that a domain error occurs if the argument is less than zero. CrossWorks C deviates and always uses IEC 60559 semantics.

If x is +0, sqrtf returns +0.
If x is −0, sqrtf returns −0.
If x is ∞, sqrtf returns ∞.
If x < 0, sqrtf returns NaN.
If x is NaN, sqrtf returns that NaN.