Cosmos/source/Cosmos.System2/MathEx.cs
José Pedro a58e3f2fa0 g3
2017-07-30 18:38:20 +01:00

17 lines
312 B
C#

using System;
namespace Cosmos.System
{
public static class MathEx
{
public static long Rem(long a, long b)
{
long result = a;
while (result - b > 0)
{
result = result - b;
}
return result;
}
}
}