pombreda / pysal

Automatically exported from code.google.com/p/pysal
Other
0 stars 0 forks source link

Writing a number with the scientific format in dbf #182

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A numeric column with field spec ['F', 9, 8].
A value is 9.80103559004e-06
DBFIO writes the value as 9.8010355, not as 0.00000980.

This behavior causes a lot of problems. 
More documentation on the dbf field specs is necessary.

Original issue reported on code.google.com by mhwa...@gmail.com on 1 Dec 2011 at 9:50

GoogleCodeExporter commented 9 years ago
I modified the DBF writer to ensure scientific notation isn't used.
r1054

Original comment by schmi...@gmail.com on 2 Dec 2011 at 2:40