XSLT subtraction -


i have problem following xsl code.

it's simple subtraction, strange. know can use format-number, can explain me why 0.4299999999999997 instead of expected 0.43?

<xsl:template match="/">     <root>         <xsl:value-of select="36.98 - 36.55"></xsl:value-of>     </root> </xsl:template> 

read floating - point arithmetic:

http://en.wikipedia.org/wiki/floating_point


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -