As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [math]

For math questions in general that do not fall into special categories such as `floating-point` , `fixed-point`, or `safe-math` as previously used, all of which are also valid subsets of this category hence this tag can also be used to earmark such questions.

Filter by
Sorted by
Tagged with
1 vote
1 answer

Division operation in `u128` results false value

In my node, Balance type is u128. I have following variable let per_block = 100_000_000_000_000_000_u128; let total = 50_000_000_000_000_000_000_000_u128; let ratio = per_block.checked_div(total); ...
Sudip Ghimire's user avatar