Parse the commodity amount for the register command.