mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 13:27:57 +00:00
Rewrap all comments to 100 line width (#9490)
* reformat everything again * manual formatting * last manual fix * Fix build
This commit is contained in:
@@ -62,8 +62,8 @@ pub fn to_big_uint(x: u128) -> biguint::BigUint {
|
||||
|
||||
/// Safely and accurately compute `a * b / c`. The approach is:
|
||||
/// - Simply try `a * b / c`.
|
||||
/// - Else, convert them both into big numbers and re-try. `Err` is returned if the result
|
||||
/// cannot be safely casted back to u128.
|
||||
/// - Else, convert them both into big numbers and re-try. `Err` is returned if the result cannot
|
||||
/// be safely casted back to u128.
|
||||
///
|
||||
/// Invariant: c must be greater than or equal to 1.
|
||||
pub fn multiply_by_rational(mut a: u128, mut b: u128, mut c: u128) -> Result<u128, &'static str> {
|
||||
|
||||
Reference in New Issue
Block a user