S
silellak
I have found an odd error when using an XSL stylesheet transform. We
have a Notes/Domino application with the following line of code in one
of the stylesheets:
<xsl:value-of
select="format-number(number(ActEmpMoneyValue),'###,###0.00')" />
After transforming an XML document object with this stylesheet, the
value in the XML node ActEmpMoneyValue is not calculated, but a flat
value such as "19.31". After being processed as above on our local
system/codebase, it becomes "19.31", as expected. However, the exact
same code on certain customer systems takes "19.31" and turns it into
"19.3000000000000000009"
As far as I can tell, the only reasonable explanation for this issue is
that the functions are returning an incorrect value. When I changed it
to just use the "number" function, I got the same result - same with
just the "format-number" function. When I used neither, the result was
correct.
Has anyone seen similar behavior? If so, how did they get around it?
Thanks!
have a Notes/Domino application with the following line of code in one
of the stylesheets:
<xsl:value-of
select="format-number(number(ActEmpMoneyValue),'###,###0.00')" />
After transforming an XML document object with this stylesheet, the
value in the XML node ActEmpMoneyValue is not calculated, but a flat
value such as "19.31". After being processed as above on our local
system/codebase, it becomes "19.31", as expected. However, the exact
same code on certain customer systems takes "19.31" and turns it into
"19.3000000000000000009"
As far as I can tell, the only reasonable explanation for this issue is
that the functions are returning an incorrect value. When I changed it
to just use the "number" function, I got the same result - same with
just the "format-number" function. When I used neither, the result was
correct.
Has anyone seen similar behavior? If so, how did they get around it?
Thanks!