Re: Larger than 32bit signed?
John Wilson <[email protected]>
| Newsgroups | gmane.text.xml.rpc.specification |
|---|---|
| Message-ID | <[email protected]> |
On 8 Feb 2006, at 14:32, Mark Ellzey wrote:
> I have recently taken up a project which entails output of statistical
> information. Many if not most of the other applications in the
> enterprise use XML-RPC as a communications method and I wanted to do
> the same for this one.
>
> The problem that I run into is that the XML-RPC specification only
> states an "i4" or 4 bytes signed for integers. I find it hard to
> believe that no other developer has never wanted any number larger
> than the ones provided.
>
> Has there been any research done in the area of adding unsigned or 64
> bit numbers to the specification? I understand I can just convert the
> number to a string and have the application have the logic to convert
> it, but that does not scale.
The strength of XML-RPC is the interoperability. The spec has been
stable for years now and I see no real chance that it will get
changed now.
Why doesn't using strings "scale"?
You can use double, of course, which gives you a continuous Integer
range of +- 2**52.
Just how big are the numbers you want to send?
John Wilson
The Wilson Partnership
http://www.wilson.co.uk
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/xml-rpc/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/