Anonymous user
Arithmetic/Rational/Java: Difference between revisions
no edit summary
m (Extended Number and implemented Comparable as suggested by taitale on reddit) |
No edit summary |
||
Line 1:
Modeled after BigInteger/BigDecimal. Instances of this class are immutable, and simplified upon construction. The returned numerator() and denominator() are never negative; the sign can be retrieved via signum(). The
<lang java>import java.math.BigDecimal;
|