Round seeder prices and costs to proper money values at 2 decimal places

This commit is contained in:
2022-01-05 16:27:41 +00:00
parent 129973fc5b
commit c744cf1af0
3 changed files with 45 additions and 49 deletions

View File

@@ -11,10 +11,8 @@ namespace AyaNova.Util
/// </summary>
/// <param name="d"></param>
/// <returns></returns>
public static decimal Round(decimal d)
{
return Decimal.Round(d, 2, MidpointRounding.AwayFromZero);
}
public static decimal Round(decimal d) => Decimal.Round(d, 2, MidpointRounding.AwayFromZero);
}//eoc