Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. double d = 8.19999999999999999999;
  2. cout << d << "n";
  3. cout << fixed << d << "n";
  4. cout << setprecision(15) << d << "n";
  5. cout << fixed << setprecision(15) << d << "n";
  6.  
  7. 8.2
  8. 8.200000
  9. 8.199999999999999
  10. 8.199999999999999
  11.  
  12. 8.2
  13. 8.200000
  14. 8.200000000000000
  15. 8.200000000000000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement