// define some units of measure []type litre []type pint // define some volumens let vol1 = 2.5 let vol2 = 2.5 // define the ratio of pints to litres let ratio = 1.0 / 1.76056338 // a function to convert prints to litres let convertPintToLitre pints = pints * ratio // preforme the conversion and add the values let newVol = vol1 + (convertPintToLitre vol2)