diff --git a/utilities/src/fixed_u128.rs b/utilities/src/fixed_u128.rs index 9e390834aed6d2d05276105aba28b3d859b766eb..5146ed05f6e4134efdb200372e4f0a4279b67d3b 100644 --- a/utilities/src/fixed_u128.rs +++ b/utilities/src/fixed_u128.rs @@ -208,7 +208,8 @@ impl Bounded for FixedU128 { impl fmt::Debug for FixedU128 { #[cfg(feature = "std")] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "FixedU128({},{})", self.0 / DIV, (self.0 % DIV) / 1000) + let fractional = format!("{:0>18}", self.0 % DIV); + write!(f, "FixedU128({}.{})", self.0 / DIV, fractional) } #[cfg(not(feature = "std"))]