fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. #define M_PI 3.14159265358979323846 /* pi */
  5.  
  6. int main() {
  7.  
  8. long double a = M_PI;
  9.  
  10. printf("%.20Lf\n", a);
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 4568KB
stdin
Standard input is empty
stdout
3.14159265358979311600