Int64 i = ((Int64)Math.Round(Convert.ToDecimal(dr["CHARGE"]) / 10,1,MidpointRounding.AwayFromZero)) * 10;
if (Convert.ToDecimal(x % 10) == 5) { x = x + 1; } Int64 i = ((Int64)Math.Round(Convert.ToDecimal(x) / 10)) * 10;
var ii = Math.Round(Convert.ToDecimal((104.9 + 0.0000001) / 10.00)) * 10 ;
public int round(float value) { return (((int)value + 5) / 10) * 10; }
public int RoundOff (Decimal valueToRound) { return ((int)Math.Round(valueToRound / 10.0)) * 10; }
Int64 i = ((Int64)Math.Round(Convert.ToDecimal(dr["CHARGE"])/ 10,MidpointRounding.AwayFromZero)) * 10;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)