R: R: [phpxmlrpc-devel] is this list working?
Brought to you by:
ggiunta
From: Gaetano G. <giu...@se...> - 2003-01-23 16:13:23
|
... >=20 > and problem is, how to code VERY BIG float to non-scientific=20 > format. simply sprintf(%f,$number) seems to be not working=20 > properly. >=20 > printf("%f",1.3e200) produces=20 > 12999999999999977000000000000000000000000000000000000000000000 > 00000000000000000.00000000 > which is near 1.3e78. >=20 > 1.3e200 should by inside double range. > max float =3D +3.4028235e38 max double =3D +1.7976931348623157e308 [I found these values somewhere on the net other than the C(glibc?) = spec, so I'm not too confident:] >=20 > so maybe we should consider allow to use scientific format? >=20 Another option would be to simply encode/decode the scientific-formatted = values as strings, and do the conversion inside the application. If you're developing a private app there's no problem, since you build = both client & server. If you are developing a server open to public usage it might not look = very 'clean', but then you're better off sticking to the protocol as = much as you can anyway ... regards, Gaetano |