Re: [R] Strange sprintf Behavior
> Sent from my phone. Please excuse my brevity. > > On April 2, 2014 4:32:26 AM PDT, Michael Smith wrote: >> All, >> >> I'm getting this: >> >>> sprintf("%.17f", 0.8) >> [1] "0.80004" &
[R] Strange sprintf Behavior
All, I'm getting this: > sprintf("%.17f", 0.8) [1] "0.80004" Where does the `4` at the end come from? Shouldn't it be zero at the end? Maybe I'm missing something. > sessionInfo() R version 3.0.2 (2013-09-25) Platform: x86_64-redhat-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.ut