Changing commerce_line item quantity to 3 decimal places
In theory, changing the commerce_line_item field's SQL (schema) definition ought to be enough. However, a cursory review of a few modules shows that some of them will round the value to 2 decimal places before using it, negating the change. You'll probably need to change it and then test it to ensure that every module you're using it with will work as you intend.