[R] long integer handling
Yousri Fanous
you@r|@|@nou@ @end|ng |rom gm@||@com
Sat Nov 14 02:44:46 CET 2020
I want to calculate 2^64-1 which is
18446744073709551615
I set the following options to prevent scientific notation
options("scipen"=100, "digits"=4)
> x<-2^64 -1
> x
[1] 18446744073709551616
This is not correct. There seem to be still some approximation happening.
How can I get the correct result?
Yousri
IBM Canada ltd
Software developer
[[alternative HTML version deleted]]
More information about the R-help
mailing list