[R] Problem with products in R ?
peter dalgaard
pdalgd at gmail.com
Sun May 4 18:38:19 CEST 2014
On 04 May 2014, at 16:13 , Jorge I Velez <jorgeivanvelez at gmail.com> wrote:
> Try
>
> options(digits = 22)
> 168988580159 * 36662978
> # [1] 6195624596620653568
But the last 5 digits are supposed to match those of
> 80159 * 62978
[1] 5048253502
so the result is off by 66. Further analysis will likely reveal rounding to the nearest multiple of 1024. As I said, this is hardly surprising.
>
> HTH,
> Jorge.-
>
>
>
> On Sun, May 4, 2014 at 10:44 PM, ARTENTOR Diego Tentor <
> diegotentor71 at gmail.com> wrote:
>
>> Trying algorithm for products with large numbers i encountered a difference
>> between result of 168988580159 * 36662978 in my algorithm and r product.
>> The Microsoft calculator confirm my number.
>>
>> Thanks.
>>
>>
>>
>>
>> --
>>
>>
>> * Gráfica ARTENTOR *
>>
>> de Diego L. Tentor
>> Echagüe 558
>> Tel.:0343 4310119
>> Paraná - Entre Ríos
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
More information about the R-help
mailing list