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:15 UTC
svn commit: r1061554 -
/commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/util/FastMath.java
Author: luc
Date: Thu Jan 20 22:38:14 2011
New Revision: 1061554
URL: http://svn.apache.org/viewvc?rev=1061554&view=rev
Log:
improved javadoc on infinite values for nextAfter
Modified:
commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/util/FastMath.java
Modified: commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/util/FastMath.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/util/FastMath.java?rev=1061554&r1=1061553&r2=1061554&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/util/FastMath.java (original)
+++ commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/util/FastMath.java Thu Jan 20 22:38:14 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