Quantity with decimals

There should be an option so that the amount entered allows numbers with decimals, for example if a product is sold per kilo or liters, you must be able to enter 1.5 liters for a liter and a half or 0.5 kilos for half a kilo of product, or 0.3 Kilos for 300 grams.