fixed percentage formatting
This commit is contained in:
parent
116d28be99
commit
baebfb6902
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user