Advertisement
Guest User

Untitled

a guest
Mar 14th, 2020
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. int main() {
  5.  
  6.     int i = 100;
  7.     double d = static_cast<double>(i);
  8.     std::cout << std::setprecision(8) << std::showpoint << d << std::endl;
  9.  
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement