tmontaigu / dbase-rs

Rust library to read & write dBase files.
MIT License
29 stars 30 forks source link

fix decimal places in writing numeric values #19

Closed hblyp closed 3 years ago

hblyp commented 3 years ago

Fixes #18

hblyp commented 3 years ago

Hi, the test_serde_roundtrip fails due to records.score being 79.87 and the field definition sets the length of the field to 7 and the number of decimal places to 5. Length of 79. is 3 + num of decimal places 5 = 8. Do I change the score value in the test?

tmontaigu commented 3 years ago

I think yes.

I feel like I need to update this part of the code, it feels much more complicated that what it should

tmontaigu commented 3 years ago

Thanks