using System;
namespace Cosmos.System
{
///
/// MathEx class. Provides additional math methods.
///
public static class MathEx
{
///
/// Get the remainder on division of a in b.
///
/// Divided number.
/// Divider.
/// long value.
public static long Rem(long a, long b)
{
long result = a;
while (result - b > 0)
{
result = result - b;
}
return result;
}
}
}