Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

pi with cmath

// Example program
#include <iostream>
#include <cmath>

using namespace std;

int main()
{
  cout << M_PI << endl;
  // change 17 with other number to see what happens
  cout.precision(17);
  cout << M_PI << endl;

  return 0;
}
 run  | edit  | history  | help 0