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 2015/05/05 10:22:08 UTC

[math] Print double to long cast.

Repository: commons-math
Updated Branches:
  refs/heads/h10-builds 67da172db -> 14f24f2cd


Print double to long cast.

Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/14f24f2c
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/14f24f2c
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/14f24f2c

Branch: refs/heads/h10-builds
Commit: 14f24f2cda8dee33f42e07bc391de3ed30c2487f
Parents: 67da172
Author: Luc Maisonobe <lu...@apache.org>
Authored: Tue May 5 10:21:50 2015 +0200
Committer: Luc Maisonobe <lu...@apache.org>
Committed: Tue May 5 10:21:50 2015 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/commons/math4/util/FastMath.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/14f24f2c/src/main/java/org/apache/commons/math4/util/FastMath.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/util/FastMath.java b/src/main/java/org/apache/commons/math4/util/FastMath.java
index 6da1535..ceef1a1 100644
--- a/src/main/java/org/apache/commons/math4/util/FastMath.java
+++ b/src/main/java/org/apache/commons/math4/util/FastMath.java
@@ -1477,6 +1477,7 @@ public class FastMath {
                 System.out.format(java.util.Locale.US, "in if ((bits & 0x8000000000000000L) != 0)%n");
                 // -zero
                 long yi = (long) y;
+                System.out.format(java.util.Locale.US, "yi = %x%n", yi);
 
                 if (y < 0 && y == yi && (yi & 1) == 1) {
                     System.out.format(java.util.Locale.US, "in if (y < 0 && y == yi && (yi & 1) == 1) --> return Double.NEGATIVE_INFINITY%n");