Skip to content

Commit 33b7ff1

Browse files
authored
Rollup merge of #102131 - orlp:patch-1, r=thomcc
Added which number is computed in compute_float. The original comment was very elaborate but ultimately did not mention at all what is being computed using parameters `w, q`, only referencing an external article for the algorithm.
2 parents 53e08f3 + 186debc commit 33b7ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/num/dec2flt/lemire.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::num::dec2flt::table::{
66
LARGEST_POWER_OF_FIVE, POWER_OF_FIVE_128, SMALLEST_POWER_OF_FIVE,
77
};
88

9-
/// Compute a float using an extended-precision representation.
9+
/// Compute w * 10^q using an extended-precision float representation.
1010
///
1111
/// Fast conversion of a the significant digits and decimal exponent
1212
/// a float to an extended representation with a binary float. This

0 commit comments

Comments
 (0)