Divide a quantity in a given ratio (#810)