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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -