[Rd] numbers after dot missing (PR#10663)
ripley at stats.ox.ac.uk
ripley at stats.ox.ac.uk
Wed Jan 30 19:05:19 CET 2008
> x <- 76079320.32+21374.27+7630.04+28432.47
> print(x, digits=13)
[1] 76136757.1
If you want trailing zeros printed, use sprintf().
Reading ?print.default will explain this to you -- it is working as
documented.
On Wed, 30 Jan 2008, michael.krueckl at chello.at wrote:
> Full_Name: Michael
> Version: 2.6.1
> OS: Windows XP
> Submission from: (NULL) (81.223.30.219)
>
>
> i recognized a problem with the numbers behind a dot, an example:
>
> 76079320.32+21374.27+7630.04+28432.47
> [1] 76136757 // should be 76,136,757.10
>
>> 32+27+4+47 // proof it should be xxx.1
> [1] 110
>
> that kind of problem happened more than 1 time
>
> hope u can fix it :)
>
> ______________________________________________
> 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
More information about the R-devel
mailing list