Package org.midheaven.math
Class Numbers
java.lang.Object
org.midheaven.math.Numbers
Represents Numbers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interface -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Numbers
public Numbers()
-
-
Method Details
-
gcd
public static int gcd(int a, int b) Performs gcd.- Parameters:
a- the a valueb- the b value- Returns:
- the result of gcd
-
gcd
public static long gcd(long a, long b) Performs gcd.- Parameters:
a- the a valueb- the b value- Returns:
- the result of gcd
-