-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
R4R: Increase decimal precision to 18 #3315
Conversation
|
||
copy(bzStr, bzInt[:decPointPlace]) // pre-decimal digits | ||
bzStr[decPointPlace] = byte('.') // decimal point | ||
copy(bzStr[decPointPlace+1:], bzInt[decPointPlace:]) // post-decimal digits |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the vital change
Codecov Report
@@ Coverage Diff @@
## develop #3315 +/- ##
==========================================
- Coverage 55.62% 55.6% -0.03%
==========================================
Files 132 132
Lines 9540 9540
==========================================
- Hits 5307 5305 -2
- Misses 3898 3900 +2
Partials 335 335 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes to types/decimal.go
look fine. Can we make the testcases also dependent on Precision
, so we can adjust precision in the future without breaking the tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved pending test changes suggested by @cwgoes
Is this still accurate? |
@cwgoes - not accurate anymore - deleting |
I don't think we should do this for the reason that it will make reading the tests more confusing (rather than just seeing the string, you have to now interpret the string from a function) - as well not all of the test cases actually end in ".000000000" - I don't anticipate us changing the number of places very often and its only a 5 minute fix when we need it
|
OK, fair enough. |
closes #3039
docs/
)PENDING.md
with issue #Files changed
in the github PR explorerFor Admin Use: