@@ -1198,12 +1198,16 @@ static void FormatString(StringBuilder &
FormatNumber(builder, args.GetNextParameter<int64_t>(), _number_format_separators);
break;
case SCC_DECIMAL: { // {DECIMAL}
int64_t number = args.GetNextParameter<int64_t>();
int digits = args.GetNextParameter<int>();
if (digits == 0) {
FormatNumber(builder, number, _number_format_separators);
}
int64_t divisor = PowerOfTen(digits);
int64_t fractional = number % divisor;
number /= divisor;
fmt::format_to(builder, "{}{:0{}d}", GetDecimalSeparator(), fractional, digits);
Status change: