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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -