Skip to content
Prev 32806 / 398506 Next

Rounding problem R vs Excel

On Mon, 2 Jun 2003 20:50:20 -0400, you wrote:

            
No, the problem is that R uses binary formats, and some numbers aren't
representable there.  So for example,
[1] 0.14

because 0.145 isn't representable exactly, and is actually being
represented as 0.14999999999 or something similar.

Duncan Murdoch