On 30-Jan-2013 20:39:34 Berend Hasselman wrote:
>
> On 30-01-2013, at 21:32, Dave Mitchell wrote:
>
>> Why, in R, does (0.1 + 0.05) > 0.15 evaluate to True? What am I missing
>> here? How can I ensure this (ostensibly incorrect) behavior doesn't
>> introduce bugs into my code? Thanks for your
sage-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
> Behalf
> Of Dave Mitchell
> Sent: Wednesday, January 30, 2013 12:32 PM
> To: r-help@r-project.org
> Subject: [R] arithmetic and logical operators
>
> Why, in R, does (0.1 + 0.05) >
On 30-01-2013, at 21:32, Dave Mitchell wrote:
> Why, in R, does (0.1 + 0.05) > 0.15 evaluate to True? What am I missing
> here? How can I ensure this (ostensibly incorrect) behavior doesn't
> introduce bugs into my code? Thanks for your time.
>
R-FAQ 7.31:
http://cran.r-project.org/doc/FAQ
R FAQ 7.31 (Note, this isn't R specific, rather it's a problem with
the finitude of computers)
MW
On Wed, Jan 30, 2013 at 8:32 PM, Dave Mitchell wrote:
> Why, in R, does (0.1 + 0.05) > 0.15 evaluate to True? What am I missing
> here? How can I ensure this (ostensibly incorrect) behavior doesn'
Why, in R, does (0.1 + 0.05) > 0.15 evaluate to True? What am I missing
here? How can I ensure this (ostensibly incorrect) behavior doesn't
introduce bugs into my code? Thanks for your time.
Dave Mitchell
[[alternative HTML version deleted]]
___
5 matches
Mail list logo