Monday, 19 August 2013

Logic between rounding decimals to 2 digits c++

Logic between rounding decimals to 2 digits c++

I recently came across the following piece of code to display 2 decimal
digits.
val = (val*100.0)/100.0
The result was as told, but I don't get the logic behind the functioning
of it. Can anyone please explain. Thank you.

No comments:

Post a Comment