-
Notifications
You must be signed in to change notification settings - Fork 2
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
encodeFixed? #5
Comments
I believe that you're talking about a function that looks like this:
If we do something like:
Would the output be
Which just always does the maximum number of decimal places. This second one is actually pretty easy to write since
So to implement I'd take either of these in a PR as long as some relevant tests are added to the test suite. |
thanks! I think the second is closer to what I want, I'll get a PR together. |
Would you accept a patch that adds a function that always encodes in a fixed decimal format? I'm using your code to process some JSON into CSV and would prefer a simple & predictable numeric encoding format, even if it's pretty bloaty.
(Thanks for the cool software, btw, json-syntax is way faster than Aeson for my workload.)
The text was updated successfully, but these errors were encountered: