Go to Customize Form > Search for “Sales Invoice Item”, search for rate and amount row. Expand each row and set the precision as shown below:
Hope this helps.