I am trying to round up an amount which is not working correctly. I am using
Math.Ceiling()
48,743.98 - Output coming correctly as 48,744
48,743.50 - showing wrong result as 48743 instead of 48,744
48,743.10 - showing wrong result as 48743 instead of 48,744
621639.10 - wrong result as 6,21,639 instead of 6,21,640
how to fix this ?
@Robotics - Math.Ceiling will ceil to the upper number even for a small decimal value.
To fix this one - use Math.Round - it will round to the next upper number based on 50%.