mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 15:47:58 +00:00
clean arithmetic and unify names with the new api (#8581)
This commit is contained in:
@@ -381,7 +381,7 @@ macro_rules! implement_fixed {
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "std", test))]
|
||||
pub fn to_fraction(self) -> f64 {
|
||||
pub fn to_float(self) -> f64 {
|
||||
self.0 as f64 / <Self as FixedPointNumber>::DIV as f64
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user