author | robm |
Sat, 15 Jun 2013 09:26:42 +0100 | |
changeset 18356 | 105e99e6ea5d |
parent 18355 | 381a149016f9 |
child 18357 | 9f4f4ae77766 |
jaxp/src/com/sun/org/apache/xalan/internal/xsltc/runtime/BasisLibrary.java | file | annotate | diff | comparison | revisions |
--- a/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/runtime/BasisLibrary.java Fri Jun 14 15:14:49 2013 +0400 +++ b/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/runtime/BasisLibrary.java Sat Jun 15 09:26:42 2013 +0100 @@ -952,7 +952,7 @@ return result; } else { - if (!Double.isFinite(d)) + if (Double.isNaN(d) || Double.isInfinite(d)) return(Double.toString(d)); //Convert -0.0 to +0.0 other values remains the same