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 1d419b5 commit e396713Copy full SHA for e396713
src/numberparse/correct.rs
@@ -363,13 +363,11 @@ fn f64_from_parts(
363
f *= get!(POW10, exponent);
364
}
365
let res = StaticNode::F64(if positive { f } else { -f });
366
- return Ok(res);
367
- }
368
- if significand == 0 {
+ Ok(res)
+ } else if significand == 0 {
369
let res = StaticNode::F64(if positive { 0.0 } else { -0.0 });
370
371
372
- if (-325..=308).contains(&exponent) {
+ } else if (-325..=308).contains(&exponent) {
373
let (factor_mantissa, factor_exponent) = get!(POW10_COMPONENTS, exponent + 325);
374
let mut leading_zeroes = u64::from(significand.leading_zeros());
375
let f = significand << leading_zeroes;
0 commit comments