[R] floating point in single precision

2010-06-27 Thread Sebastian Gibb
Hello, is there a possibilty in R to convert numbers (double precision, 64bit) into single precision ones (32bit). I need that for compatibility reasons. Until now I call a C application which casts a double to a float. float precision32(double value) { return (float)value; } But I want to

Re: [R] floating point in single precision

2010-06-27 Thread Prof Brian Ripley
On Sun, 27 Jun 2010, Sebastian Gibb wrote: Hello, is there a possibilty in R to convert numbers (double precision, 64bit) into single precision ones (32bit). I need that for compatibility reasons. Until now I call a C application which casts a double to a float. float precision32(double

Re: [R] floating point in single precision

2010-06-27 Thread Sebastian Gibb
Am Sonntag, 27. Juni 2010, 08:39:10 schrieb Prof Brian Ripley: On Sun, 27 Jun 2010, Sebastian Gibb wrote: Hello, is there a possibilty in R to convert numbers (double precision, 64bit) into single precision ones (32bit). I need that for compatibility reasons. Until now I call a C