Module:Infobox interval: Difference between revisions

TallKite (talk | contribs)
2nd try
Lériendil (talk | contribs)
am pushing a change without discussing, admittedly; however it greatly benefits me in particular to directly compare how a specific interval is tuned in some tuning, to that interval in JI, at precision higher than a single cent, by looking at that interval's wiki page; intervals used as generators and stacked many times require much higher precision. Therefore I'm unilaterally adjusting the precision to at least one decimal place.
Line 174: Line 174:
-- it's really hard to hear a tenth of a cent, but 3 sig figs seems possibly useful
-- it's really hard to hear a tenth of a cent, but 3 sig figs seems possibly useful
local sigFigs = 3
local sigFigs = 3
if cents >= 1000 then sigFigs = 4 end
if cents >= 100 then sigFigs = 4 end
if cents >= 10000 then sigFigs = 5 end
if cents >= 1000 then sigFigs = 5 end
table.insert(infobox_data, {
table.insert(infobox_data, {
"Size in [[cent]]s",
"Size in [[cent]]s",