Cosmos/source/Cosmos.System/MathEx.cs
2015-11-11 10:21:49 -06: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;
}
}
}