Module:Infobox interval: Difference between revisions

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.
Godtone (talk | contribs)
revert
Line 172: Line 172:
end
end
if regular then
if regular then
-- it's really hard to hear a tenth of a cent, but 3 sig figs seems possibly useful
local sigFigs = 3
if cents >= 100 then sigFigs = 4 end
if cents >= 1000 then sigFigs = 5 end
table.insert(infobox_data, {
table.insert(infobox_data, {
"Size in [[cent]]s",
"Size in [[cent]]s",
utils._round(cents, sigFigs) .. "¢",
utils._round(cents, 8) .. "¢",
})
})
end
end