You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In particular, the following operations should be supported: addition, subtraction and comparison.
We should also limit the precision following decimal128 which supports 34 digits of precision.
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate contributors tagged
Contributor assigned/self-assigned
The text was updated successfully, but these errors were encountered:
Summary
Add decimal support to group module based on a streamlined version of https://github.com/regen-network/regen-ledger/tree/3265a868bf834fb946da1facb81122e13e348538/types/math
Problem Definition
The group module needs decimal support for storing group members weight but there hasn't been any consensus yet about the future of
sdk.Dec
(#7773).Proposal
We'll add such support internally to the group module first, based on the
Dec struct
from https://github.com/regen-network/regen-ledger/tree/3265a868bf834fb946da1facb81122e13e348538/types/math and https://github.com/cockroachdb/apd. That will allow us to move forward with migrating the group module to the SDK and could serve as a PoC for the larger decimals discussion.In particular, the following operations should be supported: addition, subtraction and comparison.
We should also limit the precision following decimal128 which supports 34 digits of precision.
For Admin Use
The text was updated successfully, but these errors were encountered: