Module:Interval edo approximation: Difference between revisions

Pailiaq (talk | contribs)
No edit summary
Pailiaq (talk | contribs)
No edit summary
Line 150: Line 150:
     local ratio_cents = cents(ratio)
     local ratio_cents = cents(ratio)
     -- Include subtitle info in caption to avoid breaking sortable functionality
     -- Include subtitle info in caption to avoid breaking sortable functionality
     table.insert(output, string.format('|+ EDO Approximations for %s (%.3f¢)<br/><small>\'\'≤ %dedo, Relative Error ≤%g%%\'\'</small>', interval_str, ratio_cents, max_edo, tolerance))
     table.insert(output, string.format('|+ EDO Approximations for %s (%.3f¢)<br/><small>\'\'≤ %dedo, Relative Error ≤ %g%%\'\'</small>', interval_str, ratio_cents, max_edo, tolerance))
     table.insert(output, '|-')
     table.insert(output, '|-')
     table.insert(output, '! EDO !! class="unsortable" | Step size !! Cent Value ([[Cent|¢]]) !! Absolute Error ([[Cent|¢]]) !! [[Relative_interval_error|Relative Error]] ([[Relative_cent|%]])')
     table.insert(output, '! EDO !! class="unsortable" | Step size !! Cent Value ([[Cent|¢]]) !! Absolute Error ([[Cent|¢]]) !! [[Relative_interval_error|Relative Error]] ([[Relative_cent|%]])')