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...
Which of the following methods is the common configuration method for PCIe adapters?
A) Switches and jumpers B) Reference disk C) Plug and play D) Software disk
Computer Science & Information Technology
isLetter(str) is a string manipulation function.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology