Converts numeric values to positive integers with a warning.
numeric
integer
num2int(x)
num2int uses as.integer functionality.
as.integer
suppressWarnings(num2int(pi) == 3L)#> [1] TRUE