jaxp/src/com/sun/org/apache/xalan/internal/xsltc/runtime/BasisLibrary.java

Print this page

        

*** 950,962 **** return result.substring(0, length-2); else return result; } else { ! if (Double.isNaN(d) || Double.isInfinite(d)) return(Double.toString(d)); // Use the XPath formatter to ignore locales StringBuffer result = threadLocalStringBuffer.get(); result.setLength(0); xpathFormatter.format(d, result, _fieldPosition); return result.toString(); --- 950,965 ---- return result.substring(0, length-2); else return result; } else { ! if (!Double.isFinite(d)) return(Double.toString(d)); + //Convert -0.0 to +0.0 other values remains the same + d = d + 0.0; + // Use the XPath formatter to ignore locales StringBuffer result = threadLocalStringBuffer.get(); result.setLength(0); xpathFormatter.format(d, result, _fieldPosition); return result.toString();