Skip to content

Commit 8f29d5c

Browse files
authored
Fix wrong field width for SCIENTIFIC
1 parent 3805f4e commit 8f29d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/VariadicTable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ class VariadicTable
361361
sizes[I] = -3 + 1 + sizes[I] + 1 + 2; // // +1 (sign) +x (numbers before decimal point) +1 (decimal point) +2 (numbers after decimal point)
362362
}
363363
else if (_column_format[I] == VariadicTableColumnFormat::SCIENTIFIC){
364-
sizes[I] = -3 + 1 + 1 + 1 + _precision[I] + 1 + 1 + 3; // +1 (sign) +1 (number before decimal point) +1 (decimal point) +X (numbers after decimal point) +5 (e-123)
364+
sizes[I] = 1 + 1 + 1 + _precision[I] + 1 + 1 + 3; // +1 (sign) +1 (number before decimal point) +1 (decimal point) +X (numbers after decimal point) +5 (e-123)
365365
}
366366
else if (_column_format[I] == VariadicTableColumnFormat::FIXED){
367367
sizes[I] = -3 + 1 + sizes[I] + 1 + _precision[I]; // +1 (sign) +x (numbers before decimal point) +1 (decimal point) +X (numbers after decimal point)

0 commit comments

Comments
 (0)