This commit is contained in:
21
server/AyaNova/util/MoneyUtil.cs
Normal file
21
server/AyaNova/util/MoneyUtil.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace AyaNova.Util
|
||||
{
|
||||
internal static class MoneyUtil
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Rounding for monetary values
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="d"></param>
|
||||
/// <returns></returns>
|
||||
public static decimal Round(decimal d)
|
||||
{
|
||||
return Decimal.Round(d, 2, MidpointRounding.AwayFromZero);
|
||||
}
|
||||
|
||||
}//eoc
|
||||
|
||||
}//eons
|
||||
Reference in New Issue
Block a user