as.integer(2^31 - 2)
[1] 2147483646
as.integer(2^31 - 1)
[1] 2147483647
as.integer(2^31)
[1] NA
as.integer(-2^31 + 2)
[1] -2147483646
as.integer(-2^31 + 1)
[1] -2147483647
as.integer(-2^31)
[1] NA
-2147483646L
[1] -2147483646
-2147483646L - 1L
[1] -2147483647
-2147483646L - 2L
[1] NA
as.integer(2^31 - 1)
[1] 2147483647
.Machine$double.eps
[1] 2.220446e-16
as.integer(2^31 - 1)
[1] 2147483647
factorial(13)
[1] 6227020800
Scientists using Google's supercomputers have calculated that there are 43 252 003 274 489 856 000 different configurations in a standard 3x3x3 cube. This number would have taken 35 years for a standard PC to calculate.
as.integer(0.5)
[1] 0
as.integer(1.9)
[1] 1
2^31
[1] 2147483648
class(2^31)
[1] "numeric"