I noticed some strange precision behavior that I cannot understand, I have XML:
<CLD> <UCRV> <UCR1>.07</UCR1> </UCRV> </CLD>
And in the XSLT file, I select the value as a penny (or 100 pence, as it seems, I donβt know why, but this is what the client wants!) As:
<xsl:value-of select="./s0:CLD/s0:UCRV/s0:UCR1/text() * 100 * 100"/>
But this is output as 700.00000000000011. The data type is xsd: Decimal. Is there a default accuracy limit here? I can just round the number, but I just wanted to understand it a little better.
thanks
Rodders
source share