So as the top says. I am stuck on a rather simple problem but its seems I am stuck.
Example: x = 3.141
When I use printf("x is: %.2f", x);
it spits out: X is 3.14
Well to calculate state tax anything above a cent needs to be rounded up so 3.141 should be 3.15. Is there a simple printf I can modify or an additional tag I can add? Or will I need to go a round about way to calculate the additional bit?