[R] Problem with <= (less than or equal): not giving the expected result

S Ellison S.Ellison at LGCGroup.com
Wed Apr 6 12:34:38 CEST 2016

> Apparently, abs(1 - 0.95) is not equal to 0.05, which I find however quite
> disturbing.

It's normal.* See R FAQ 7.31 in the html help system.

S Ellison

*... and common to all computers that use binary. 

This email and any attachments are confidential. Any use, copying or
disclosure other than by the intended recipient is unauthorised. If 
you have received this message in error, please notify the sender 
immediately via +44(0)20 8943 7000 or notify postmaster at lgcgroup.com 
and delete this message and any copies from your computer and network. 
LGC Limited. Registered in England 2991879. 
Registered office: Queens Road, Teddington, Middlesex, TW11 0LY, UK

More information about the R-help mailing list