title: Loss of decimal places when calculating mean in R
body: <p>I have a list entitled SET1Bearing1slope with nine numbers, and each number has at least 10 decimal places. When I use the mean() function on the list I get an arithmetic mean </p>
  
  <p><img src="https://i.stack.imgur.com/47SUS.png" alt="Calculated arithmetic mean">. </p>
  
  <p>Yet if I list the numbers individually and then use the mean() function, I get a different output </p>
  
  <p><img src="https://i.stack.imgur.com/Ax6NC.png" alt="Different calculated arithmetic mean"></p>
  
  <p>I know that this is caused by a rounding and that the second mean is more accurate. Is there a way to avoid this issue? What method can I use to avoid rounding errors when calculating the mean?</p>