math.ratios: faster M\ ratio /mod.