mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
17 lines
312 B
C#
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;
|
|
}
|
|
}
|
|
}
|