Module:JI ratio finder: Difference between revisions
m a space |
m Fixed error calculation; error should be how far the target cent value is from the JI ratio's cent value |
||
| Line 244: | Line 244: | ||
local ratio_as_text = rat.as_ratio(ratios[i]) | local ratio_as_text = rat.as_ratio(ratios[i]) | ||
local ratio_as_cents = rat.cents(ratios[i]) | local ratio_as_cents = rat.cents(ratios[i]) | ||
local diff = ratio_as_cents | local diff = target_cents - ratio_as_cents | ||
if add_links then | if add_links then | ||