Thursday, October 05, 2006

sqrt 10

900 million decimal digits of the square root of 10. This number is one of the few that a long base-10 representation seems aesthetically appropriate.

int main(int argc, char* argv[]) { apfloat t(10,atoi(argv[1])); apfloat q=sqrt(t); cout << q << endl; }

There is a string of 9 zeros ending at 388370112. There is a string of 9 nines ending at 593434037.

No comments :