I am tearing my hair out trying to figure this one. Lets say I have the following numeric vector:
mynumbers <- c(-3.6, -3.6, -2.6 , 4.4 , 5.4)
Why does the sum(mynumbers)
return -1.136868e-13
and not 0? Unless I am misunderstanding the sum function in R, shouldn't the numbers add up to 0?