Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for floats #16

Closed
wants to merge 2 commits into from
Closed

Conversation

anthonywebb
Copy link

I had a file I was consuming that had data of type "F", this update allowed me to consume that data without any issue

@yortus
Copy link
Owner

yortus commented Feb 23, 2018

Hi @anthonywebb, thanks for the PR! Sorry about the delay in responding to your issue, there hasn't been much time for this project lately.

Can you work through this checklist to complete the PR? (looks like the first three are done).

  • Add a float case in readRecordsFromDBF so floats can be read.
  • Add a float case in appendToDBF so floats can be written.
  • Update validateFields to cover the 'F' type
  • Add at least one test for reading a float field and one for writing a float field (might need a new fixture)
  • Update the README to mention support for the 'F' type

@yortus
Copy link
Owner

yortus commented Jun 17, 2019

The 'F' field type is now supported in v1.1. It appears to be treated identically the same as 'N' according to the available specs, so the above coded wasn't needed (I just aliased 'N' and 'F' cases to the same code). What I did need was at least one test, and that's been added now.

@yortus yortus closed this Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants