Commentary

This commit is contained in:
Wilson Snyder
2022-03-30 20:17:59 -04:00
parent e02f97854c
commit 33105f017c
34 changed files with 60 additions and 60 deletions
+1 -1
View File
@@ -698,7 +698,7 @@ string V3Number::displayed(FileLine* fl, const string& vformat) const {
// To get the number of digits required, we want to compute
// log10(2**mantissabits) and round it up. To be able to handle
// a very wide mantissa, we use log2(2**mantissabits)/log2(10),
// which is simply (+1.0 is for rounding bias):
// which is (+1.0 is for rounding bias):
double dchars = mantissabits / 3.321928094887362 + 1.0;
if (issigned) dchars++; // space for sign
fmtsize = cvtToStr(int(dchars));