codes are below and need help with the last step, the total cost should be 600 * 21.77 * 0.02 + 600 * 21.77, which is 13278.24, but it shows only 13278.2, please explain...thx
When outputting floating point numbers, cout has a default precision of 6 — that is, it assumes all variables are only significant to 6 digits, and hence it will truncate anything after that.
It will show all number to the hundredth, is it possible to make the integers to show like 1 instead of 1.00 when its a whole number ? and when it has decimals, show it to the hundredth ?