If the prices have 3 decimals, print them with 3 decimals only. If you print more decimals than needed, you encounter the finite accuracy of computer variable representations.