Module:Interval table: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 123: | Line 123: | ||
end | end | ||
local decimalPlaces = | local decimalPlaces = 3 - math.floor(math.log(1200 / et.size, 10)) | ||
if decimalPlaces > 3 then decimalPlaces = 3 end | if decimalPlaces > 3 then decimalPlaces = 3 end | ||
if decimalPlaces < 1 then decimalPlaces = 1 end | if decimalPlaces < 1 then decimalPlaces = 1 end | ||