Class Numbers

java.lang.Object
org.midheaven.math.Numbers

public class Numbers extends Object
Represents Numbers.
  • Constructor Details

    • Numbers

      public Numbers()
  • Method Details

    • gcd

      public static int gcd(int a, int b)
      Performs gcd.
      Parameters:
      a - the a value
      b - the b value
      Returns:
      the result of gcd
    • gcd

      public static long gcd(long a, long b)
      Performs gcd.
      Parameters:
      a - the a value
      b - the b value
      Returns:
      the result of gcd