We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3bb151 commit 3b5e289Copy full SHA for 3b5e289
src/mpf.rs
@@ -221,11 +221,7 @@ impl fmt::Display for Mpf {
221
/// radix point to the left of the first digit. `3.14`, for instance, will
222
/// print as `314e1` which means `0.314e1`.
223
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
224
- let mut exp: c_long = 0;
225
- match self.get_str(0, 10, &mut exp) {
226
- ref n if n.len() == 0 => write!(f, "0"),
227
- n => write!(f, "{}e{}", n, exp)
228
- }
+ <Self as fmt::Debug>::fmt(self, f)
229
}
230
231
0 commit comments