Convert quantities to decimal