Simimilar problem to Math.Atan2 or class instance problem in C# and add two double given wrong result
It is something that simple lines:
public static S
It could just be a rounding error, but I can't be sure.
Check out this article on floating point arithmetic. It's written for fortran, but it's still useful. http://www.lahey.com/float.htm