Re: R: [phpxmlrpc-devel] is this list working?
Brought to you by:
ggiunta
|
From: Ryan H. <rh...@is...> - 2003-01-23 16:02:32
|
lukasz mach wrote:
> Gaetano Giunta wrote:
>
>> A very large amount of data indeed, but it is the only way to go!
>
> and problem is, how to code VERY BIG float to non-scientific format.
> simply sprintf(%f,$number) seems to be not working properly.
>
> printf("%f",1.3e200) produces
> 1299999999999997700000000000000000000000000000000000000000000000000000000000000.00000000
>
> which is near 1.3e78.
>
> 1.3e200 should by inside double range.
>
> so maybe we should consider allow to use scientific format?
From an interoperability standpoint, this seems wrong. I would suggest
handling scientific notation at the application layer instead of the RPC
layer. Use a string and do validation within your app.
--
Ryan Hoegg
Contributor, Apache XML-RPC project
|