Skip to content

Commit

Permalink
Rollup merge of #102131 - orlp:patch-1, r=thomcc
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Dylan-DPC authored Sep 22, 2022
2 parents 53e08f3 + 186debc commit 33b7ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/num/dec2flt/lemire.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::num::dec2flt::table::{
LARGEST_POWER_OF_FIVE, POWER_OF_FIVE_128, SMALLEST_POWER_OF_FIVE,
};

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

0 comments on commit 33b7ff1

Please sign in to comment.