0
Is there a function that rounds to two decimal places?
I have to write a program and in the program I have to round to two decimals (quote: "The output value of A should be exactly two decimal places."). So is there a function in C++ that does this and what is it?
1 Respuesta
+ 3
Give a look in fixed and setprecision().
Here:
https://stackoverflow.com/questions/16280069/show-two-digits-after-decimal-point-in-c