fix style

This commit is contained in:
zvonand 2023-03-28 10:31:52 +02:00
parent b6c598cace
commit c64e9bd233

View File

@ -192,7 +192,8 @@ private:
throw DB::Exception(DB::ErrorCodes::CANNOT_PRINT_FLOAT_OR_DOUBLE_NUMBER,
"Too many fractional symbols requested, shall not be more than {}", max_digits);
writeText(value, out);
if (likely(precision > 0)){
if (likely(precision > 0))
{
writeChar('.', out);
for (int i = 0; i < precision; ++i)
writeChar('0', out);