Thank you!
On Sat, Nov 14, 2020 at 12:54 AM Rui Barradas wrote:
> Hello,
>
> I forgot to suggest package gmp. See the second example in
>
> ?gmp::bigz
>
> Hope this helps,
>
> Rui Barradas
>
> Às 05:50 de 14/11/20, Rui Barradas escreveu:
> > Hello,
> >
> > You can compute the exact result with p
Hello,
I forgot to suggest package gmp. See the second example in
?gmp::bigz
Hope this helps,
Rui Barradas
Às 05:50 de 14/11/20, Rui Barradas escreveu:
Hello,
You can compute the exact result with package Rmpfr.
See ?mpfr and [1].
library(Rmpfr)
two <- mpfr(2, precBits = 64)
two^64 - 1
#
Hello,
You can compute the exact result with package Rmpfr.
See ?mpfr and [1].
library(Rmpfr)
two <- mpfr(2, precBits = 64)
two^64 - 1
#1 'mpfr' number of precision 64 bits
#[1] 18446744073709551615
[1] https://www.mpfr.org/
Hope this helps,
Rui Barradas
Às 01:44 de 14/11/20, Yousri F
The largest consecutive integer that can be represented in double
precision is 2^53.
You'll have to move past double precision.
---JRG
On 2020-11-13 20:44, Yousri Fanous wrote:
> I want to calculate 2^64-1 which is
> 18446744073709551615
>
> I set the following options to prevent scientific n
4 matches
Mail list logo