Skip to content
Prev 32819 / 398506 Next

Rounding problem R vs Excel

On Tue, 3 Jun 2003, Mike White wrote:

            
What problem exactly?
Printing is controlled by options("digits"): is that what you had in mind?
but
[1] 414.9999999999999
[1] -5.684342e-14
All as expected as 414 < x < 415.

Don't confuse the printed representation of an object with the object 
itself.