From ripley at stats.ox.ac.uk  Mon Oct 17 18:32:56 2005
From: ripley at stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Mon, 17 Oct 2005 18:32:56 +0200 (CEST)
Subject: [Rd] formatC using a "single" as argument (PR#8211)
Message-ID: <20051017163256.8389ACBF0@slim.kubism.ku.dk>

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



[Rd] formatC using a "single" as argument (PR#8211)
ripley@stats.ox.ac.uk