Class UnsignedLong

java.lang.Object
com.io7m.junsigned.core.UnsignedLong

public final class UnsignedLong extends Object
Functions dealing with unsigned long values.
  • Method Details

    • modulo

      public static long modulo(long x, long y) throws ArithmeticException
      Calculate the unsigned modulo x % y.
      Parameters:
      x - The dividend
      y - The divisor
      Returns:
      The unsigned modulo x % y
      Throws:
      ArithmeticException - Iff y < 0