On 2/20/2012 12:49 PM, David Bertoni wrote:
On 1/16/2012 1:39 PM, shath...@e-z.net wrote:
My current tests with Xalan-C 1.11 seem to indicate that Numbers are
only
useful with the resolution of type FLOAT instead of DOUBLE. The
underlying data storage for numbers appears to be 64-bit DOUBLE, but the
rendering seems to be restricted to 32-bit FLOAT.
What will be needed to qualify Xalan-C 1.11 to use 64-bit DOUBLE.
Hi Steve,
Sorry, I just saw your email. Why do you think Xalan-C only supports
the resolution of a C float? The code uses double internally, and we
should fully support IEEE-754, as the XPath recommendation specifies.
Can you provide some specific examples where numbers aren't working as
they should?
Dave
If you set a variable to "1234567890.1234567890123456789" and use
<xsl:value-of select='$variable'/>
it renders the string value of the variable.
If you use the following to convert the string to a number
<xsl:value-of select="number($variable)"/>
then the result is serialized as: "12345678890.1234567"
Note: This indicates a precision of FLOAT instead of a precision of DOUBLE.
Steven J. Hathaway
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscr...@xml.apache.org
For additional commands, e-mail: xalan-dev-h...@xml.apache.org