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 95e1b92 commit 5f3c899Copy full SHA for 5f3c899
core/src/num/dec2flt/mod.rs
@@ -332,7 +332,7 @@ fn bound_intermediate_digits(decimal: &Decimal<'_>, e: i64) -> u64 {
332
// It tries to find a positive number k such that `f << k / 10^e` is an in-range
333
// significand. This will result in about `2^53 * f * 10^e` < `10^17 * f * 10^e`.
334
// One input that triggers this is 0.33...33 (375 x 3).
335
- f_len + (e.abs() as u64) + 17
+ f_len + e.unsigned_abs() + 17
336
}
337
338
0 commit comments