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

Print this page

        

*** 953,962 **** --- 953,965 ---- } else { if (Double.isNaN(d) || Double.isInfinite(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();