[R] Number of decimal places
David Winsemius
dwinsemius at comcast.net
Fri Oct 26 18:02:46 CEST 2012
Putting back the context:
( We are not looking at this with Nabble.)
> When estimating values each determined similarly, and in which get to them
> by algebraic operations in some cases, are rounded with 0 decimal places and
> in other cases with 2 or 3 decimal places. What is happening?
> Thank you.
On Oct 26, 2012, at 7:13 AM, DMMS wrote:
> For example
>
>> a=12344.567
>> a
> [1] 12344.57
>> b=234.567
>> b
> [1] 234.567
>> a=111111111111234235423.56
>> a
> [1] 1.111111e+20
>> b=11111111111.898
>> b
> [1] 11111111112
>>
>
?options
Pay attention to digits and scipen arguments
Also look at:
?format
>
> --
David Winsemius, MD
Alameda, CA, USA
More information about the R-help
mailing list