16 Dec 18:06
number() floated?
Konrad Korzeniowski <konrad <at> pandur.net>
2011-12-16 17:06:10 GMT
2011-12-16 17:06:10 GMT
Hi there,
I'm using 1.1.26-6 version of libxslt (Debian Lenny), and cannot find any explanation regarding described below behaviour.
I got following simple xslt file:
running xsltproc with this xsl against any xml gives:
8.949999999999999
Is this expected? Shouldn't this be 8.85?
Thanks for any explanation.
Best regards,
Konrad Korzeniowski
I'm using 1.1.26-6 version of libxslt (Debian Lenny), and cannot find any explanation regarding described below behaviour.
I got following simple xslt file:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:template match="/">
<xsl:value-of select="number('8.95')"/>
</xsl:template>
</xsl:stylesheet>
running xsltproc with this xsl against any xml gives:
8.949999999999999
Is this expected? Shouldn't this be 8.85?
Thanks for any explanation.
Best regards,
Konrad Korzeniowski
_______________________________________________ xslt mailing list, project page http://xmlsoft.org/XSLT/ xslt <at> gnome.org http://mail.gnome.org/mailman/listinfo/xslt
RSS Feed