Name
sqrt function — Computes square root
Synopsis
float sqrt(float x) double sqrt(double x) long double sqrt(long double x)
The sqrt
function returns
the square root or its argument. If x
is negative, a domain error occurs. The
return value is always positive or 0
.
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.