Re: [R] RV: R question

2011-05-06 Thread Philipp Pagel
 which is the maximum large of digits that R has?, because SQL work
 with 50 digits I think. and I need a software that work  with a lot
 of digits.

The .Machine() command will provide some insight into these matters.

cu
Philipp


-- 
Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
Maximus-von-Imhof-Forum 3
85354 Freising, Germany
http://webclu.bio.wzw.tum.de/~pagel/

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] RV: R question

2011-05-06 Thread David Winsemius


On May 6, 2011, at 4:03 AM, Philipp Pagel wrote:


which is the maximum large of digits that R has?, because SQL work
with 50 digits I think.


I am wondering if that is binary or decimal.


and I need a software that work  with a lot
of digits.


The .Machine() command will provide some insight into these matters.


On my device (and I suspect on all versions of R) .Machine is a built- 
in list and there is no .Machine() function.


.Machine returns a list that includes
$integer.max
[1] 2147483647

And you can look at the FAQ:
http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f

Which tells you that R can handle 53 digits _binary_

In agreement with  these components of .Machine:
$double.base
[1] 2

$double.digits
[1] 53

... and the FAQ has some explicit warnings about trusting more than 16  
digits decimal.


And look at the package, 'gmp'.




cu
Philipp


--

David Winsemius, MD
West Hartford, CT

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] RV: R question

2011-05-06 Thread Philipp Pagel
On Fri, May 06, 2011 at 09:17:11AM -0400, David Winsemius wrote:
 
 On May 6, 2011, at 4:03 AM, Philipp Pagel wrote:
 The .Machine() command will provide some insight into these matters.
 
 On my device (and I suspect on all versions of R) .Machine is a
 built-in list and there is no .Machine() function.

Oops - my fault. You are right, of course.

cu
Philipp

-- 
Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
Maximus-von-Imhof-Forum 3
85354 Freising, Germany
http://webclu.bio.wzw.tum.de/~pagel/

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] RV: R question

2011-05-05 Thread Pamela Santelices Elgueta

which is the maximum large of digits that R has?, because SQL work with 50 
digits I think. and I need a software that work  with a lot of digits.
Thanks.

Pamela Santelices Elgueta
Estadístico
Instituto Nacional de Estadísticas
Fono: (56-2) 7962491
Paseo Bulnes 209 oficina 82
Santiago


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.