Workaround for simplejson: <a href="http://code.google.com/p/simplejson/issues/detail?id=34">http://code.google.com/p/simplejson/issues/detail?id=34</a> (near the end)<br><div>Or, if using py26&#39;s json: <a href="http://stackoverflow.com/questions/1447287/format-floats-with-standard-json-module">http://stackoverflow.com/questions/1447287/format-floats-with-standard-json-module</a></div>

<div><br clear="all">  -Josh<br>
<br><br><div class="gmail_quote">On Wed, Jan 20, 2010 at 8:43 AM, Peter Robins <span dir="ltr">&lt;<a href="mailto:fs@peterrobins.co.uk">fs@peterrobins.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

2010/1/20 Christopher Schmidt &lt;<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>&gt;:<br>
<div class="im">&gt;  43.12, or some other number? for example, 43.125 would work, because<br>
&gt; it is a power-of-two in binary.<br>
<br>
</div>yes, it works for 43.125. Ok, so floating-point arithmetic problem,<br>
but that doesn&#39;t explain why it works on some servers but not on<br>
others.<br>
<br>
<a href="http://maps.peterrobins.co.uk/cgi-bin/test.cgi" target="_blank">http://maps.peterrobins.co.uk/cgi-bin/test.cgi</a> is a simple script that does:<br>
<br>
#!/usr/bin/python<br>
print &quot;Content-Type: text/plain\n\n&quot;<br>
import sys<br>
print &quot;version&quot;, sys.version<br>
import simplejson<br>
print simplejson.dumps(43.12)<br>
<br>
this prints 43.12. On the same server,<br>
<a href="http://maps.peterrobins.co.uk/cgi-bin/fs/details/1" target="_blank">http://maps.peterrobins.co.uk/cgi-bin/fs/details/1</a> is a real<br>
linestring where the output is fine. Somewhat older version of python<br>
(2.4), but otherwise the software is identical.<br>
<div><div></div><div class="h5">_______________________________________________<br>
Featureserver mailing list<br>
<a href="mailto:Featureserver@openlayers.org">Featureserver@openlayers.org</a><br>
<a href="http://featureserver.org/mailman/listinfo/featureserver" target="_blank">http://featureserver.org/mailman/listinfo/featureserver</a><br>
</div></div></blockquote></div><br></div>