Convert a quantity to a number
function qty2num input Quantity q "Quantity"; input Np selfDummy "2nd argument is the unit itself; contains no data"; output Real n "Number"; end qty2num;