[R] floating point in single precision

From: Sebastian Gibb <lists_at_sebastiangibb.de>
Date: Sun, 27 Jun 2010 08:28:18 +0200


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 use a R only method. What can I do?

Kind regards,

Sebastian



R-help_at_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. Received on Sun 27 Jun 2010 - 06:32:13 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 27 Jun 2010 - 07:00:36 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive