I would like to get rid of the double precision round off chaff, so is the 
following the best way to handle it? 

> 0.625-0.8+0.45-0.275
[1] -5.551115e-17
> round(0.625-0.8+0.45-0.275, digits=4)
[1] 0

Motivation for removing the chaff is for no other reason than to titty up the 
digits for display purposes and to help quicken the analysis of values that 
most definitely should be zero. 

Thanks for any insights and feedback.

______________________________________________
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