How to have decimals

How do you have decimals in the quantity selector? Also looking to add per metre to the products of type fabric (multiply the price by 2). How would I go about doing this?