We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
You can easily add currency format, this works for us:
const DBFFIELD_TYPE_CURRENCY = 'Y'; // Currency public function getCurrency($columnName) { $s = $this->choppedData[$columnName]; $s = unpack('q', $s); if ($s) { return $s[1] / 10000; } return 0; }
The text was updated successfully, but these errors were encountered:
You can also use:
$s = unpack('l', $s);
It results in the same.
Sorry, something went wrong.
Do you have it working @alexjeen? Would you mind opening a PR?
Hi there @Hisamu, yes we've verified that it works. However we only use the reading part of this library.
I don't have time to make a PR in the coming weeks for the writing part (and to do some testing for the writing part).
This is the test file we have used to check if it actually works, its a table with a single column and row.
test.dbf.zip
cbfab5c
No branches or pull requests
You can easily add currency format, this works for us:
The text was updated successfully, but these errors were encountered: