Displaying 4 results from an estimated 4 matches for "5000000000000".
Did you mean:
000000000000
2015 Apr 14
3
behavior of as.integer("5000000000")
...curate integer conversion in coercion
>
>> Is this a bug or a feature? The man page suggests it's the
>> latter:
>
> I think you mean the "former", a bug.
>
> and I agree entirely, see the following " 2 x 2 " comparison :
>
> > N <- 5000000000000 * 8^-(0:7)
> > as.integer(N)
> [1] NA NA NA NA 1220703125 152587890 19073486 2384185
> Warning message:
> NAs introduced by coercion
> > as.integer(-N)
> [1] NA NA NA NA -1220703125...
2015 Apr 14
3
behavior of as.integer("5000000000")
Hi,
> as.integer("5000000000")
[1] 2147483647
Warning message:
inaccurate integer conversion in coercion
> as.integer("-5000000000")
[1] NA
Warning message:
inaccurate integer conversion in coercion
Is this a bug or a feature? The man page suggests it's the latter:
?as.integer? attempts to coerce its argument to be of integer
type.
2015 Apr 17
1
behavior of as.integer("5000000000")
...man page suggests it's the
>>>> latter:
>>>
>>> I think you mean the "former", a bug.
>>>
>>> and I agree entirely, see the following " 2 x 2 " comparison :
>>>
>>> > N <- 5000000000000 * 8^-(0:7)
>>> > as.integer(N)
>>> [1] NA NA NA NA 1220703125 152587890 19073486 2384185
>>> Warning message:
>>> NAs introduced by coercion
>>> > as.integer(-N)
>>> [1]...
2015 Apr 17
0
behavior of as.integer("5000000000")
...his a bug or a feature? The man page suggests it's the
>>> latter:
>>
>> I think you mean the "former", a bug.
>>
>> and I agree entirely, see the following " 2 x 2 " comparison :
>>
>> > N <- 5000000000000 * 8^-(0:7)
>> > as.integer(N)
>> [1] NA NA NA NA 1220703125 152587890 19073486 2384185
>> Warning message:
>> NAs introduced by coercion
>> > as.integer(-N)
>> [1] NA NA...