Skip to content

Instantly share code, notes, and snippets.

@Rubix982
Created February 10, 2020 16:00
Show Gist options
  • Save Rubix982/1b4238bf21e20d25891335cd0418fa27 to your computer and use it in GitHub Desktop.
Save Rubix982/1b4238bf21e20d25891335cd0418fa27 to your computer and use it in GitHub Desktop.
#include <bits/stdc++.h>
using namespace std;
int main(void)
{
// Generates the value of the macro PI, without having to rely on an already existing macro in C++
// Since the macro varies from compiler to compiler
std::cout << "Value of PI: " << std::setprecision(20) << acos(-1) << std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment