[R] Bug on r-bc?

Paul Smith phhs80 at gmail.com
Tue Jul 27 00:54:36 CEST 2010


On Mon, Jul 26, 2010 at 11:42 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
>> The following code should return 1, but it returns 0:
>>
>> source("http://r-bc.googlecode.com/svn/trunk/R/bc.R")
>> bc("9 % 2")
>>
>
> See FAQ 2 on the r-bc package home page:
> http://r-bc.googlecode.com

Thanks to all respondents for your replies. It seems that there is
still a problem:

> bc("2 % 50",sample=0)
[1] "0"

However,

> bc("scale = 0; 2 % 50")
[1] "2"
>

Paul



More information about the R-help mailing list