20 lines
447 B
C#
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);
|
|
}
|
|
}
|