You are viewing a single comment's thread. Return to all comments →
The issue is that the double input is not printed with full precision using cout. You have to set the precision you want before you print it.
For example, with your code above, on an input of 111134.22344, it will print just 111134.2
Hint: Read about setprecision()
Seems like cookies are disabled on this browser, please enable them to open this website
Basic Data Types
You are viewing a single comment's thread. Return to all comments →
The issue is that the double input is not printed with full precision using cout. You have to set the precision you want before you print it.
For example, with your code above, on an input of 111134.22344, it will print just 111134.2
Hint: Read about setprecision()