Hi everyone,
I am trying to display a numeric value fetched from an sql server table which is stored in the exponential notation. For eg, 0.08 is getting stored in the table as 8.0000000000000 002E-2. This causes the xslt function format-number() to fail.
I use it as
The message says that
I searched for an xsl function so that I would use it like
To my disappointment no numeric function handles the exponential notation. Any help will be greatly appreciated.
Many thanks in advance..
I am trying to display a numeric value fetched from an sql server table which is stored in the exponential notation. For eg, 0.08 is getting stored in the table as 8.0000000000000 002E-2. This causes the xslt function format-number() to fail.
I use it as
Code:
<xsl:value-of select='format-number(8.0000000000000002E-2, "###,###.00")' />
Code:
This name may not contain the '#' character: -->#<--##,###.00 -->format-number(8.0000000000000002E-2, "###,###.00")<--
Code:
<xsl:value-of select='format-number(number(8.0000000000000002E-2), "###,###.00")' />
Many thanks in advance..
Comment