Rounding
Hi - likely an easy question, but . . .
i successfully round with Math.Round() and get results to 2 decimal places as desired, EXCEPT when the value is accurate to 1 or 0 decimal places, in which case the output is truncated to 1 or 0 decimal places. What i need is to always show 2 decimal places.
Example: If value = 45.233333, the result is 45.33 (perfect)
If value = 45.20 , the result is 45.2 (not good) desired 45.20
If value = 45.00 , the result is 45 (not good) desired 45.00
Suggestions? Thanks!
|