I know that you can use setprecision(x) to limit the amount of decimals displayed in the cout method. I was wondering how do I round a single decimal place up/down?
For example: I have the number: 0.073
I want to round 7 upwards even though the number after 7 is 3. So the number becomes: 0.08
I have tried using ceil and floor, but that only rounds it to a whole number. I have ceilf as well, and that rounds to a whole number too.