clean arithmetic and unify names with the new api (#8581)

This commit is contained in:
Kian Paimani
2021-04-09 16:36:06 +02:00
committed by GitHub
parent 7e59d172b8
commit 373e3a4ddc
6 changed files with 30 additions and 32 deletions
@@ -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
}
}