[Rd] round(4.5) does not work (PR#9439)

From: <cstevenson_at_edisonresearch.com>
Date: Sun 07 Jan 2007 - 03:01:10 GMT


Anything that has 4.5 in it will always round to 4. For example 24.5 becomes 24 and 34.5 becomes 34. Or 1234567894.5 will become 1234567894.

> round(4.5)

[1] 4
> round(3.5)

[1] 4

Thanks,

Clint W. Stevenson
Senior Statistician
Edison Media Research
cstevenson@edisonresearch.com

--please do not edit the information below--

Version:
 platform = i386-pc-mingw32
 arch = i386
 os = mingw32
 system = i386, mingw32
 status =
 major = 2
 minor = 4.1
 year = 2006
 month = 12
 day = 18
 svn rev = 40228
 language = R

 version.string = R version 2.4.1 (2006-12-18)

Windows XP Professional (build 2600) Service Pack 2.0

Locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252

Search Path:
 .GlobalEnv, package:stats, package:graphics, package:grDevices, package:utils, package:datasets, package:methods, Autoloads, package:base



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon Jan 08 04:32:14 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 07 Jan 2007 - 18:31:11 GMT.

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