fixed percentage formatting

This commit is contained in:
Baipyrus 2023-10-29 15:19:30 +01:00
parent 116d28be99
commit baebfb6902

View File

@ -40,7 +40,7 @@ end
-- format percentages as number with two decimals and padded unit
function format_percent(options, number)
return string.format('%.2f', number * 100) .. ' % ' .. string.rep(' ', #options.unit)
return string.format('%.2f', number * 100) .. ' % ' .. string.rep(' ', #options.unit)
end
-- format temperature as number with two decimals and padded unit