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.
This commit is contained in:
Dylan DPC 2022-09-22 18:25:57 +05:30 committed by GitHub
commit 33b7ff128f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@
LARGEST_POWER_OF_FIVE, POWER_OF_FIVE_128, SMALLEST_POWER_OF_FIVE, 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 /// Fast conversion of a the significant digits and decimal exponent
/// a float to an extended representation with a binary float. This /// a float to an extended representation with a binary float. This