From 9d38793a2866cd394d3e038b419598c96e9a6af3 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Thu, 20 Jan 2011 22:38:14 +0000 Subject: [PATCH] improved javadoc on infinite values for nextAfter git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1061554 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/math/util/FastMath.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/math/util/FastMath.java b/src/main/java/org/apache/commons/math/util/FastMath.java index b9ebdc0a9..621284ae4 100644 --- a/src/main/java/org/apache/commons/math/util/FastMath.java +++ b/src/main/java/org/apache/commons/math/util/FastMath.java @@ -3354,7 +3354,8 @@ public class FastMath { * d is returned; otherwise the largest representable number * strictly less than d is returned.

*

- * If d is NaN or Infinite, it is returned unchanged.

+ * If d is NaN or if it is infinite and direction does not + * bring it back to finite numbers, it is returned unchanged.

* * @param d base number * @param direction (the only important thing is whether @@ -3418,7 +3419,8 @@ public class FastMath { * d is returned; otherwise the largest representable number * strictly less than d is returned.

*

- * If d is NaN or Infinite, it is returned unchanged.

+ * If d is NaN or if it is infinite and direction does not + * bring it back to finite numbers, it is returned unchanged.

* * @param f base number * @param direction (the only important thing is whether