On Mon, 08 Nov 2004 15:56:49 -0000 (GMT), (Ted Harding)
<[EMAIL PROTECTED]> wrote :

>Further investigation indicates that there is an integer truncation
>problem with 'choose':
>
>  > print(choose(60000000000,1),digits=20)
>  [1] 60001679906.00000
>  > print(my.choose3(60000000000,1),digits=20)
>  [1] 6e+10

Are you sure you're using the standard R choose()?  I get different
results from you:

> print(choose(60000000000,1),digits=20)
[1] 6e+10

What platform are you using?  I did this is Windows R 2.0.0, and get
the same result in the beta of 2.0.1.

Duncan Murdoch

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to