Added a comment.

This commit is contained in:
Daniel Lemire 2020-03-15 22:35:21 -04:00
parent 317fc6ba0e
commit da3e064fc7
1 changed files with 3 additions and 0 deletions

View File

@ -142,6 +142,9 @@ really_inline double compute_float_64(int64_t power, uint64_t i, bool negative,
// Otherwise we may need more accuracy or analysis to determine whether
// we are exactly between two floating-point numbers.
// It can be triggered with 1e23.
// Note: because the factor_mantissa and factor_mantissa_low are
// almost always rounded down (except for small positive powers),
// almost always should round up.
*success = false;
return 0;
}