quantity will be converted in float type