[ create a new paste ] login | about

Link: http://codepad.org/Xqh7ooAJ    [ raw code | output | fork ]

C, pasted on Jan 18:
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>
#include <math.h>

#define PI (atan(1)*4)
int main(){
    float n = 1e6 + PI;
    n = n - 1e6;
    printf("%.8lf\n",n);
    return 0;
}


Output:
1
3.12500000


Create a new paste based on this one


Comments: