I have a long double and I want to print all digits of it (the complete number without scientific notation) using cout .
Here's the code :-
long double d = 3456489465498484.14159265358979;
cout << "Num: " << d << endl;
output:-
Num: 3.45649e+015
While I want the output to be
Num: 3456489465498484.14159265358979;
I tried precision and set precision but the dont seem to work this way. please help