Pi Constant

Synopsis

This will print a float that represents the constant Pi.

Results

Output:

3.14159

Code

C++

#include "itkMath.h"

int
main(int /*argc*/, char * /*argv*/[])
{
  std::cout << itk::Math::pi << std::endl;
  return EXIT_SUCCESS;
}

Classes demonstrated