sin(double(pi)) is equal to the error in the double(pi) constant. If you manually add the two you can easily get pi to about 34 digits. Useless, but cool. I discuss this in more detail here:
http://randomascii.wordpress.com/2012/02/25/comparing-floati...
double pi = 3.14159265358979323846; printf("pi = %.33f\n + %.33f\n", pi, sin(pi));
sin(double(pi)) is equal to the error in the double(pi) constant. If you manually add the two you can easily get pi to about 34 digits. Useless, but cool. I discuss this in more detail here: http://randomascii.wordpress.com/2012/02/25/comparing-floati...