--- 
+++ 
@@ -25,7 +25,7 @@
       add(" ");
     }
 
-    if ((long) x == x) {
+if ((long) x == x &&!isNegativeZero(x)) {
       long value = (long) x;
       long mantissa = value;
       int exp = 0;