BotSharp/src/Infrastructure/BotSharp.Abstraction/Utilities/MathExt.cs
2025-01-23 23:45:43 -06:00

20 lines
447 B
C#

namespace BotSharp.Abstraction.Utilities;
public static class MathExt
{
public static int Max(int a, int b, int c)
{
return Math.Max(Math.Max(a, b), c);
}
public static long Max(long a, long b, long c)
{
return Math.Max(Math.Max(a, b), c);
}
public static decimal Round(decimal value, MidpointRounding rouding = MidpointRounding.AwayFromZero)
{
return Math.Round(value, rouding);
}
}