(Limitations of Floating-Point Numbers for Monetary Amounts) Section 4.6 cautioned about using floating-point values for monetary calculations. Try this experiment: Create a float variable with the value 1000000.00. Next add to that variable the literal float value 0.12f. Display the result using printf and the conversion specifier "%. 2f". What do you get?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.