powered by
Converts numeric values to positive integers with a warning.
numeric
integer
num2int(x)
The positive integer of x.
x
an numeric vector
num2int uses as.integer functionality.
as.integer
suppressWarnings(num2int(pi) == 3L)
Run the code above in your browser using DataLab