Skip to content

Commit da3e064

Browse files
committed
Added a comment.
1 parent 317fc6b commit da3e064

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/generic/numberparsing.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ really_inline double compute_float_64(int64_t power, uint64_t i, bool negative,
142142
// Otherwise we may need more accuracy or analysis to determine whether
143143
// we are exactly between two floating-point numbers.
144144
// It can be triggered with 1e23.
145+
// Note: because the factor_mantissa and factor_mantissa_low are
146+
// almost always rounded down (except for small positive powers),
147+
// almost always should round up.
145148
*success = false;
146149
return 0;
147150
}

0 commit comments

Comments
 (0)