8 karma · joined Jul 30, 2021 (5y ago) · 7 submissions
comment 5y ago · link · parent
I've added an issue to track that based on your feedback:
https://github.com/ustaxes/UsTaxes/issues/458
And another issue about floating point:
https://github.com/ustaxes/UsTaxes/issues/457
I have doubts about the floating point issue just because all values on the tax forms are calculated using floats and then rounded to the nearest whole dollar. But if there's even a possibility that an intermediate calculation could flip a x.49 to a x.50 and change the rounding, then I agree we should switch to a library.
About the contributor guide, we just tried to write it to be as welcoming as possible to new contributors. With respect to "'ask in discord' for the actual content of the tax calculations", I'm just not sure what you mean. That document isn't really relevant to tax calculations. We will give the document another look though based on your feedback.
comment 5y ago · link · parent
It has been nice working with new contributors that have specific knowledge of such issues. The core team is two people, and we're lucky to have new contributors come with specific knowledge in different areas. So, ideally, we could wait for someone with domain expertise to come along. Failing that when have time we pick off the next most important-seeming thing and add it.
comment 5y ago · link · parent
But we have heard this a few times, so I think it would be good to make it explicit somewhere that it's done this way, or switch to bignumber. Do you think if all our calculations are done using decimal places, and then numbers are rounded to integer dollars on the final PDFs, that we'll still have errors?
Created an issue based on your feedback. Thank you! https://github.com/ustaxes/UsTaxes/issues/457