|
-
March 26th, 2008, 01:11 AM
#1
Double datatype roundoff
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|