C++ Programming/Code/Standard C Library/Functions/sqrt
Appearance
sqrt
[edit | edit source]Syntax |
#include <cmath>
double sqrt( double num );
|
The sqrt() function returns the square root of num. If num is negative, a domain error occurs.
Syntax |
#include <cmath>
double sqrt( double num );
|
The sqrt() function returns the square root of num. If num is negative, a domain error occurs.