You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2011/01/20 23:38:35 UTC

svn commit: r1061555 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/FastMath.java

Author: luc
Date: Thu Jan 20 22:38:35 2011
New Revision: 1061555

URL: http://svn.apache.org/viewvc?rev=1061555&view=rev
Log:
improved javadoc on infinite values for nextAfter

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/FastMath.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/FastMath.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/FastMath.java?rev=1061555&r1=1061554&r2=1061555&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/FastMath.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/FastMath.java Thu Jan 20 22:38:35 2011
@@ -3354,7 +3354,8 @@ public class FastMath {
      * <code>d</code> is returned; otherwise the largest representable number
      * strictly less than <code>d</code> is returned.</p>
      * <p>
-     * If <code>d</code> is NaN or Infinite, it is returned unchanged.</p>
+     * If <code>d</code> is NaN or if it is infinite and direction does not
+     * bring it back to finite numbers, it is returned unchanged.</p>
      *
      * @param d base number
      * @param direction (the only important thing is whether
@@ -3418,7 +3419,8 @@ public class FastMath {
      * <code>d</code> is returned; otherwise the largest representable number
      * strictly less than <code>d</code> is returned.</p>
      * <p>
-     * If <code>d</code> is NaN or Infinite, it is returned unchanged.</p>
+     * If <code>d</code> is NaN or if it is infinite and direction does not
+     * bring it back to finite numbers, it is returned unchanged.</p>
      *
      * @param f base number
      * @param direction (the only important thing is whether