Repository: commons-math Updated Branches: refs/heads/MATH_3_X 5511eec3b -> 0dd621687
[MATH-1237] Fix javadoc of methods floorDiv,floorMod in FastMath. Thanks to Ken Williams. Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/0dd62168 Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/0dd62168 Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/0dd62168 Branch: refs/heads/MATH_3_X Commit: 0dd621687ddc1b0c254db14743e78cdd6315ae6b Parents: 5511eec Author: Thomas Neidhart <[email protected]> Authored: Mon Oct 19 22:01:50 2015 +0200 Committer: Thomas Neidhart <[email protected]> Committed: Mon Oct 19 22:01:50 2015 +0200 ---------------------------------------------------------------------- src/changes/changes.xml | 3 +++ .../org/apache/commons/math3/util/FastMath.java | 16 ++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/0dd62168/src/changes/changes.xml ---------------------------------------------------------------------- diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 8d466fd..167f79f 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -51,6 +51,9 @@ If the output is not quite correct, check for invisible trailing spaces! </properties> <body> <release version="3.6" date="XXXX-XX-XX" description=""> + <action dev="tn" type="fix" issue="MATH-1237" due-to="Ken Williams"> + Fixed javadoc of methods {floorDiv,floorMod} in class "FastMath". + </action> <action dev="tn" type="add" issue="MATH-837"> "AggregateSummaryStatistics" can now aggregate any kind of "StatisticalSummary". http://git-wip-us.apache.org/repos/asf/commons-math/blob/0dd62168/src/main/java/org/apache/commons/math3/util/FastMath.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/util/FastMath.java b/src/main/java/org/apache/commons/math3/util/FastMath.java index 8056d04..27d8ee5 100644 --- a/src/main/java/org/apache/commons/math3/util/FastMath.java +++ b/src/main/java/org/apache/commons/math3/util/FastMath.java @@ -3915,7 +3915,7 @@ public class FastMath { return a * b; } - /** Finds q such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b > 0. + /** Finds q such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b < 0. * <p> * This methods returns the same value as integer division when * a and b are same signs, but returns a different value when @@ -3923,7 +3923,7 @@ public class FastMath { * </p> * @param a dividend * @param b divisor - * @return q such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b > 0 + * @return q such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b < 0 * @exception MathArithmeticException if b == 0 * @see #floorMod(int, int) * @since 3.4 @@ -3945,7 +3945,7 @@ public class FastMath { } - /** Finds q such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b > 0. + /** Finds q such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b < 0. * <p> * This methods returns the same value as integer division when * a and b are same signs, but returns a different value when @@ -3953,7 +3953,7 @@ public class FastMath { * </p> * @param a dividend * @param b divisor - * @return q such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b > 0 + * @return q such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b < 0 * @exception MathArithmeticException if b == 0 * @see #floorMod(long, long) * @since 3.4 @@ -3975,7 +3975,7 @@ public class FastMath { } - /** Finds r such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b > 0. + /** Finds r such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b < 0. * <p> * This methods returns the same value as integer modulo when * a and b are same signs, but returns a different value when @@ -3983,7 +3983,7 @@ public class FastMath { * </p> * @param a dividend * @param b divisor - * @return r such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b > 0 + * @return r such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b < 0 * @exception MathArithmeticException if b == 0 * @see #floorDiv(int, int) * @since 3.4 @@ -4005,7 +4005,7 @@ public class FastMath { } - /** Finds r such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b > 0. + /** Finds r such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b < 0. * <p> * This methods returns the same value as integer modulo when * a and b are same signs, but returns a different value when @@ -4013,7 +4013,7 @@ public class FastMath { * </p> * @param a dividend * @param b divisor - * @return r such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b > 0 + * @return r such that a = q b + r with 0 <= r < b if b > 0 and b < r <= 0 if b < 0 * @exception MathArithmeticException if b == 0 * @see #floorDiv(long, long) * @since 3.4
