[
https://issues.apache.org/jira/browse/XMLRPC-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472466
]
Aren Sandersen commented on XMLRPC-130:
---------------------------------------
It would seem short of a spec modification that there's no choice. Exponents
just aren't allowed. Can the DecimalFormat class be convinced to leave out the
exponent?
> 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.