mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
Introduce Fixed128 from ORML to sp_arithmetic (#5614)
* add fixed128 * fix build * re-export * fix test * saturating_pow * Update primitives/arithmetic/src/fixed128.rs Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
@@ -117,7 +117,7 @@ pub trait Saturating {
|
||||
/// Saturating multiply. Compute `self * rhs`, saturating at the numeric bounds instead of
|
||||
/// overflowing.
|
||||
fn saturating_mul(self, rhs: Self) -> Self;
|
||||
|
||||
|
||||
/// Saturating exponentiation. Compute `self.pow(exp)`, saturating at the numeric bounds
|
||||
/// instead of overflowing.
|
||||
fn saturating_pow(self, exp: usize) -> Self;
|
||||
|
||||
Reference in New Issue
Block a user