Hi,

I'm doing some easy calculations to normalize some values. This looks like
this:

x=mean(a+b+c+d ...)
a=a-x
b=b-x
c=c-x
d=d-x
...
mean(a+b+c+d ...) ---> Should now be 0!
However, I'm getting results like -2.315223e-18
This is really near to 0 but not very aesthetic.

Can I prevent this? Or is this behaviour desired?
Thank you very much!
Burtan

-- 
Frederik Bertling
Steinhausenstr. 37, 45147 Essen, Deutschland
Mobil: 017661103480*
*

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to