You can see Ramanujan's constant.
Here is my code:
#include <iostream>
#include <math.h>
#define _USE_MATH_DEFINES
using namespace std;
int main ()
{
long double s=sqrt(163);
long double P=M_PI;
long double R=exp(s*P);
cout.precision(150);
cout<<"Pi= "<<P<<"\n"<<"sqrt(163)= "<<s<<"\n"<<"R= "<<R;
return(0);
}
This is my out put:
Pi= 3.141592653589793115997963468544185161590576171875
sqrt(163)= 12.767145334803704059822848648764193058013916015625
R= 262537412640768256
What's wrong with my program?
The correct output is 262537412640768743.99999999999925...