You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2004/01/03 13:14:18 UTC
DO NOT REPLY [Bug 25842] -
format -number() does not work correctly on 17(or above)-digit decimals
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25842>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25842
format -number() does not work correctly on 17(or above)-digit decimals
zongaro@ca.ibm.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From zongaro@ca.ibm.com 2004-01-03 12:14 -------
The first argument of the XSLT format-number function is required to be a
number. According to Section 3.5 of XPath 1.0 [1], a number is an IEEE 754
double-precision, 64-bit format value. The limits on the precision of such a
value are approximately 16 decimal digits. The differences you see between the
input values and the formatted output values are due to the loss of precision
inherent in representing the value as a floating-point number.
[1] http://www.w3.org/TR/xpath#numbers