แก้ไข การคำนวณ
This commit is contained in:
@@ -426,6 +426,8 @@ public static class MyHelper
|
||||
|
||||
public static decimal RoundOff(decimal i, decimal round_number)
|
||||
{
|
||||
return (Math.Round(i / round_number)) * round_number;
|
||||
string temp = i.ToString().Split(".")[0];
|
||||
|
||||
return Convert.ToDecimal(temp.Substring(0, temp.Length - 1)) * 10 + 10;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user