Fraction in Quantity and/or Graduation

Hello, 

Is there a way to add quantity or graduation as decimals. In example if I have a product in kg unit I would like the customer to be able to order 0.5 kg of that product. 

Thank you