[EMAIL PROTECTED] writes:
> Hi
> I had observed the following problem in R (also C, Matlab, and Python).
> sprintf('%1.2g\n', 3.15)
> give 3.1 instead of 3.2 whereas an input of 3.75 gives 3.8.
> Java's System.out.printf is ok though.
>
> > round(3.75,1)
> [1] 3.8
> > round(3.15,1)
> [1] 3
Did you check the Details section of the help page for round()?
Peter Ehlers
[EMAIL PROTECTED] wrote:
> Hi
> I had observed the following problem in R (also C, Matlab, and Python).
> sprintf('%1.2g\n', 3.15)
> give 3.1 instead of 3.2 whereas an input of 3.75 gives 3.8.
> Java's System.out.pr
[EMAIL PROTECTED] wrote:
> Hi
> I had observed the following problem in R (also C, Matlab, and Python).
> sprintf('%1.2g\n', 3.15)
> give 3.1 instead of 3.2 whereas an input of 3.75 gives 3.8.
> Java's System.out.printf is ok though.
>
>
>>round(3.75,1)
>
> [1] 3.8
>
>>round(3.15,1)
>
On 5/29/2006 12:22 PM, [EMAIL PROTECTED] wrote:
> Hi
> I had observed the following problem in R (also C, Matlab, and Python).
> sprintf('%1.2g\n', 3.15)
> give 3.1 instead of 3.2 whereas an input of 3.75 gives 3.8.
> Java's System.out.printf is ok though.
>
>> round(3.75,1)
> [1] 3.8
>> ro
Hi
I had observed the following problem in R (also C, Matlab, and Python).
sprintf('%1.2g\n', 3.15)
give 3.1 instead of 3.2 whereas an input of 3.75 gives 3.8.
Java's System.out.printf is ok though.
> round(3.75,1)
[1] 3.8
> round(3.15,1)
[1] 3.1
Similar outcome with sprintf in R.
Howev
On Fri, 26 May 2006, Prof Brian Ripley wrote:
> On Fri, 26 May 2006, Roger D. Peng wrote:
>
>> I'm interested in playing around with memory profiling in R-devel (as
>> described
>> at http://developer.r-project.org/memory-profiling.html) and was trying to
>> figure out how to compile R-devel so th
[EMAIL PROTECTED] writes:
> Hi there,
>
> The word "Mauchly" is still misspelled as *"Mauchley", at least in
> some /output/ of mauchly.test() and in the SSD() help page.
>
> Sincerely,
> Lukas Giesinger
Fixed for 2.3.1
--
O__ Peter Dalgaard Ă˜ster Farimagsgade 5, Entr.B
Hi there,
The word "Mauchly" is still misspelled as *"Mauchley", at least in
some /output/ of mauchly.test() and in the SSD() help page.
Sincerely,
Lukas Giesinger
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel