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
Describe the bug Users can create Decimal values with invalid BYTE_WIDTH, such as
let v = BasicDecimal::<1>::new(1, 1, &[1]);
Expected behavior We need to add more restriction to the decimal type so that only Decimal128 and Decimal256 can be used.
Decimal128
Decimal256
Additional context
The text was updated successfully, but these errors were encountered:
Simplify decimal (apache#2440)
4d3ed30
RFC: Simplify decimal (#2440) (#2477)
15f42b2
* Simplify decimal (#2440) * Format * Fix doc * Review feedback * Add docs * Fix logical merge conflict
Successfully merging a pull request may close this issue.
Describe the bug
Users can create Decimal values with invalid BYTE_WIDTH, such as
Expected behavior
We need to add more restriction to the decimal type so that only
Decimal128
andDecimal256
can be used.Additional context
The text was updated successfully, but these errors were encountered: