michael.krueckl at chello.at
2008-Jan-30 07:45 UTC
[Rd] numbers after dot missing (PR#10663)
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 :)
> 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
YOU can fix the "problem" : ) Try:> identical(76079320.32 + 21374.27 + 7630.04 + 28432.47,76136757.1)[1] TRUE> identical(76079320.32 + 21374.27 + 7630.04 + 28432.47,76136757)[1] FALSE> options(digits=10) > 76079320.32 + 21374.27 + 7630.04 + 28432.47[1] 76136757.1> sessionInfo()R version 2.7.0 Under development (unstable) (2007-12-25 r43783) i386-apple-darwin8.11.1 locale: C attached base packages: [1] graphics grDevices utils datasets stats methods base other attached packages: [1] quantmod_0.3-2 Defaults_1.1-1 xts_0.0-6 zoo_1.4-1 loaded via a namespace (and not attached): [1] grid_2.7.0 lattice_0.17-2 rpart_3.1-36>On Jan 30, 2008 1:45 AM, <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 >-- There's a way to do it better - find it. Thomas A. Edison
Possibly Parallel Threads
- [ wxruby-Bugs-10663 ] Keys not responding in caret sample, Linux
- [1113] trunk/wxruby2/samples/caret/caret.rb: Ensure the canvas has focus so KeyEvents are directed to it, fixing bug 10663
- winbind between trusted domains really acting up under 3.0.28a
- Problems installing Subscript
- Strange SIP registration situation