Re: [R] Displaying numerics to full double precision

2007-12-06 Thread Jeff Delmerico
Thanks Ben, that fixed the display within R. However, even after changing the display settings, the matrix elements still appear to be exported in single precision. The matrix object is being passed into my C routines as an SEXP Numeric type, and somewhere along the way, some of the digits are g

Re: [R] Displaying numerics to full double precision

2007-12-05 Thread Liviu Andronic
On 12/5/07, Jeff Delmerico <[EMAIL PROTECTED]> wrote: > Does anyone know if there is a way to change the display or storage settings > so that the values will be displayed to their full precision? Or does > rnorm only produce values to single precision? > > Any assistance would be greatly appreci

Re: [R] Displaying numerics to full double precision

2007-12-05 Thread Ben Bolker
Jeff Delmerico wrote: > > Thanks Ben, that fixed the display within R. However, even after changing > the display settings, the matrix elements still appear to be exported in > single precision. The matrix object is being passed into my C routines as > an SEXP Numeric type, and somewhere alon

[R] Displaying numerics to full double precision

2007-12-05 Thread Jeff Delmerico
I'm working on a shared library of C functions for use with R, and I want to create a matrix in R and pass it to the C routines. I know R computes and supposedly stores numerics in double precision, but when I create a matrix of random numerics using rnorm(), the values are displayed in single pr

Re: [R] Displaying numerics to full double precision

2007-12-05 Thread Ben Bolker
Jeff Delmerico wrote: > > I'm working on a shared library of C functions for use with R, and I want > to create a matrix in R and pass it to the C routines. I know R computes > and supposedly stores numerics in double precision, but when I create a > matrix of random numerics using rnorm(), th