albfernandez / javadbf

Java library for reading and writing Xbase (dBase/DBF) files.
GNU Lesser General Public License v3.0
220 stars 98 forks source link

[BUG] When reading from double, the data type is lost #82

Closed baizhi1989 closed 3 years ago

baizhi1989 commented 3 years ago

When reading from double, the data type is lost

example:

Field numeric type, width 18, scale 2

Original data "99999999999999.99"

DBFReader output data "9.999999999998e13" and the data type is double

Data of type BigDecimal should be output

albfernandez commented 3 years ago

Hi

What version of javaDBF are you using? In 1.0 this should return BigDecimal, seems you're using old pre 1.0 version? Could you provide a sample file without private data?

baizhi1989 commented 3 years ago

sorry, the page "https://github.com/albfernandez/javadbf " show the lastest version is JavaDBF 0.11.1, but i click "https://github.com/albfernandez/javadbf/releases", i see the lastest version 1.11.2 thank you ! image