The following is my C++ program. I want to store a long number such as pi on a variable so I am trying to use long double. But when I run the program it only displays 3.14159 . How to store the full floating point number to the variable?
#include <iostream>
using namespace std;
int main() {
long double pi;
pi = 3.14159265358979323846264338327950288419716939937510;
cout << "PI = " << pi << endl;
return 0;
}