BotSharp/src/Infrastructure/BotSharp.Abstraction/Utilities/MathExt.cs

20 lines
447 B
C#
Raw Normal View History

2024-12-02 15:06:14 +00:00
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);
}
2025-01-24 05:45:43 +00:00
public static decimal Round(decimal value, MidpointRounding rouding = MidpointRounding.AwayFromZero)
{
return Math.Round(value, rouding);
}
2024-12-02 15:06:14 +00:00
}