Module:Infobox interval: Difference between revisions
Undo revision 171362 by ArrowHead294 (talk) Tag: Undo |
Tag: Undo |
||
| Line 173: | Line 173: | ||
if regular then | if regular then | ||
-- a hundredth of a cent precision, and 3 significant figures if < 1¢ | -- a hundredth of a cent precision, and 3 significant figures if < 1¢ | ||
local sigFigs = 3 | local sigFigs = 3 | ||
if cents >= 10 then sigFigs = 4 end | if cents >= 10 then sigFigs = 4 end | ||
if cents >= 100 then sigFigs = 5 end | if cents >= 100 then sigFigs = 5 end | ||
if cents >= 1000 then sigFigs = 6 end | if cents >= 1000 then sigFigs = 6 end | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
"Size in [[cent]]s", | "Size in [[cent]]s", | ||