19 lines
376 B
C#
19 lines
376 B
C#
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 |