[
https://issues.apache.org/jira/browse/XMLRPC-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472533
]
Jochen Wiedmann commented on XMLRPC-130:
----------------------------------------
That's the point I am trying to make: DecimalFormat can only be used for fixed
length decimals, not for arbitrary floating point numbers.And, as pointed out
above, conversion to BigDecimal doesn't seem to be a practical solution.
> Small doubles are serialized in a non-compliant way
> ---------------------------------------------------
>
> Key: XMLRPC-130
> URL: https://issues.apache.org/jira/browse/XMLRPC-130
> Project: XML-RPC
> Issue Type: Bug
> Components: Releases
> Affects Versions: 1.2, 2.0, 3.0rc1
> Reporter: Aren Sandersen
> Priority: Minor
> Fix For: 1.2, 2.0, 3.0rc1
>
>
> The double value of (for example) ".000004" is serialized by XML-RPC as
> "4.0E-6". Unfortunately, this does not comply with the XML-RPC spec
> (http://www.xmlrpc.com/spec) which says:
> "At this time, only decimal point notation is allowed, a plus or a minus,
> followed by any number of numeric characters, followed by a period and any
> number of numeric characters."
> So, Java's conversion to the exponential format is not allowed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.