Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- int main() {
- int i = 100;
- double d = static_cast<double>(i);
- std::cout << std::setprecision(8) << std::showpoint << d << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement