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:
Xiliang Chen
2020-04-14 20:07:59 +12:00
committed by GitHub
parent b2b5717d6b
commit d1261d3482
7 changed files with 684 additions and 4 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ pub use sp_core::RuntimeDebug;
/// Re-export top-level arithmetic stuff.
pub use sp_arithmetic::{
Perquintill, Perbill, Permill, Percent, PerU16, Rational128, Fixed64, PerThing,
Perquintill, Perbill, Permill, Percent, PerU16, Rational128, Fixed64, Fixed128, PerThing,
traits::SaturatedConversion,
};
/// Re-export 128 bit helpers.