Skip to content
Back to formatted view

Raw Message

Message-ID: <esfvo05em889dovu6f9akm4hse5on0rj7v@4ax.com>
Date: 2004-11-08T18:51:06Z
From: Duncan Murdoch
Subject: About 'choose' function
In-Reply-To: <XFMail.041108155649.Ted.Harding@nessie.mcc.ac.uk>

On Mon, 08 Nov 2004 15:56:49 -0000 (GMT), (Ted Harding)
<Ted.Harding at nessie.mcc.ac.uk> 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