Module:Interval table: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 123: | Line 123: | ||
end | end | ||
local decimalPlaces = 2 - math.floor(math.log(1200/et.size, 10)) | local decimalPlaces = 2 - math.floor(math.log(1200.0/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 | ||