Arithmetic/Rational/Java: Difference between revisions

m
Extended Number and implemented Comparable as suggested by taitale on reddit
m (Added note about simplifying zero)
m (Extended Number and implemented Comparable as suggested by taitale on reddit)
Line 5:
import java.math.RoundingMode;
 
public class BigRational extends Number implements Comparable<BigRational>
{