Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) std::sqrt

 

std::sqrt is an STL function to obtain the square root of a double.

 

#include <cmath>
#include <iostream>

int main()
{
  std::cout << std::sqrt(2.0) << '\n';
}

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict