Class MathUtils


  • public class MathUtils
    extends java.lang.Object
    Utility class for mathematical functions.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int mod​(int numerator, int denominator)
      Calculates the remainder of a/b.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • mod

        public static int mod​(int numerator,
                              int denominator)
        Calculates the remainder of a/b.
        Parameters:
        numerator - the numerator
        denominator - the denominator
        Returns:
        the quotient