If you have a double value in your program and just set the precision for the cout statement to 4, what do you see? What do you see if you set the precision and the ios::fixed flag?
What will be an ideal response?
If you just set the precision to 4, C++ will write your double value showing 4 digits. The value 23.56787373 would be shown as 23.57 . If you set the fixed flag, you’d see 4 digits of decimal precision, i.e., 23.5679.
Computer Science & Information Technology
You might also like to view...
Actions performed in the Chart Formatting Control can be performed through the Chart Tools contextual tab on the Ribbon
Indicate whether the statement is true or false
Computer Science & Information Technology
The ________ view includes the Ribbon, but does not show margins, headers, footers, columns, tables, or other graphical objects
Fill in the blank(s) with correct word
Computer Science & Information Technology