Hi, I have read about using sprintf and tried it but can't make sense of how it works.
I have a double with the value 16.525 .
I want to cout only 16.53
I also tried setprecision() and it just cuts off the 5 on the end which won't display larger numbers right. I mean I want two decimal places to show because this is a dollar amount.
can someone show me how to do this?
Thanks