Module:Interval edo approximation: Difference between revisions
ArrowHead294 (talk | contribs) m Add debugger option, make code more friendly to read |
m Fix typo that made this module say relative error greater than or equal to some percentage instead of less than or equal |
||
| Line 151: | Line 151: | ||
-- Include subtitle info in caption to avoid breaking sortable functionality | -- Include subtitle info in caption to avoid breaking sortable functionality | ||
table.insert(output, '|+ style="font-size: 105%;" | ' | table.insert(output, '|+ style="font-size: 105%;" | ' | ||
.. string.format('Edo approximations for %s (%.2f{{c}})<br /><span style="font-size: 0.75em;">\'\'≤ %dedo, relative error & | .. string.format('Edo approximations for %s (%.2f{{c}})<br /><span style="font-size: 0.75em;">\'\'≤ %dedo, relative error ≤ %g%%\'\'</span>', | ||
interval_str, ratio_cents, max_edo, tolerance)) | interval_str, ratio_cents, max_edo, tolerance)) | ||
table.insert(output, '|-') | table.insert(output, '|-') | ||