powered by
x[]
mpfr
"is.whole"(x)
class
x
x[.]
is.integer(x)
x[i]
The is.whole() methods in package gmp.
is.whole()
is.integer(3) # FALSE, it's internally a double is.whole(3) # TRUE x <- c(as(2,"mpfr") ^ 100, 3, 3.2, 1000000, 2^40) is.whole(x) # one FALSE, only
Run the code above in your browser using DataLab