infused / dbf

DBF is a small, fast Ruby library for reading dBase, xBase, Clipper, and FoxPro database files.
http://rdoc.info/projects/infused/dbf
MIT License
262 stars 88 forks source link

Makes type casting consistent with schema. #69

Closed steventebrinke closed 9 years ago

steventebrinke commented 9 years ago

For FoxPro databases the returned type differed from the reported schema, which was confusing.

infused commented 9 years ago

Previously, we were returning an integer if the Double's number of decimals was set to 0. According the the Foxpro documentation:

When the Double data type is used in a table, the number of decimals specified when the field is created is for display purposes only.

This pull request ensures that we always return the Double's full precision.

infused commented 9 years ago

Thanks Steven, I've merged your commits and have released version 2.0.11.