jmaydt@mpi-sb.mpg.de
2005-Oct-17 16:17 UTC
[Rd] formatC using a "single" as argument (PR#8211)
Full_Name: Jochen Maydt Version: R2.2.0 OS: Windows Submission from: (NULL) (139.19.34.7) formatC does not handle "single"s correctly:> formatC(as.single(1))[1] "5.264e-315" attr(,"Csingle") [1] TRUE This seems to be an unlikely use-case, however. Thank you for creating a great programming language, Jochen
ripley@stats.ox.ac.uk
2005-Oct-17 16:32 UTC
[Rd] formatC using a "single" as argument (PR#8211)
Reading the help page for formatC x: an atomic numerical or character object, typically a vector of real numbers. and that for as.single I think you got what you should have expected! Nevertheless we will build some protection into 2.3.0. On Mon, 17 Oct 2005 jmaydt at mpi-sb.mpg.de wrote:> Full_Name: Jochen Maydt > Version: R2.2.0 > OS: Windows > Submission from: (NULL) (139.19.34.7) > > > formatC does not handle "single"s correctly: > >> formatC(as.single(1)) > [1] "5.264e-315" > attr(,"Csingle") > [1] TRUE > > This seems to be an unlikely use-case, however. > > Thank you for creating a great programming language, > Jochen > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595