pradeepkurian
March 26th, 2008, 01:11 AM
Hi ,
I have a problem with storing value as double data type in C++.
Please refer the below example for more clarity
double dVal = 10.23541453;
cout<<"Value is "<<dVal<<endl;
The out put will be 10.2354
The part after 10.2354 is getting round off.
But for my particular requirement I need the whole value, means I need to avoid the round off.
Please help me
Thanks
Pradeep Kurian
I have a problem with storing value as double data type in C++.
Please refer the below example for more clarity
double dVal = 10.23541453;
cout<<"Value is "<<dVal<<endl;
The out put will be 10.2354
The part after 10.2354 is getting round off.
But for my particular requirement I need the whole value, means I need to avoid the round off.
Please help me
Thanks
Pradeep Kurian