From 3401226d407fe4ec3377d9d334c03b24be5ce20c Mon Sep 17 00:00:00 2001
From: Stephen Colebourne Gets the numerator part of the fraction. This method may return a value greater than the denominator, an
- * improper fraction, such as the seven in 7/8.
Gets the proper numerator, always positive.
* - *An improper fraction 7/8 can be resolved into a proper one, 1 3/4. + *
An improper fraction 7/4 can be resolved into a proper one, 1 3/4. * This method returns the 3 from the proper fraction.
* - *If the fraction is negative such as -7/8, it can be resolved into + *
If the fraction is negative such as -7/4, it can be resolved into * -1 3/4, so this method returns the positive proper numerator, 3.
* * @return the numerator fraction part of a proper fraction, always positive @@ -366,10 +367,10 @@ public final class Fraction extends Number implements Serializable, Comparable { /** *Gets the proper whole part of the fraction.
* - *An improper fraction 7/8 can be resolved into a proper one, 1 3/4. + *
An improper fraction 7/4 can be resolved into a proper one, 1 3/4. * This method returns the 1 from the proper fraction.
* - *If the fraction is negative such as -7/8, it can be resolved into + *
If the fraction is negative such as -7/4, it can be resolved into * -1 3/4, so this method returns the positive whole part -1.
* * @return the whole fraction part of a proper fraction, that includes the sign