BOM using fractions or percentages

Check you UOM setup for your 40 KG. Make sure “Must be whole number” is not checked.

That should solve the rejection of the fraction.