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