powered by
div(n, m)
n %/% m
floor(n/m)
mod
rem
div(c(-5:5), 5) div(c(-5:5), -5) div(c(1, -1), 0) #=> Inf -Inf div(0,c(0, 1)) #=> NaN 0
Run the code above in your browser using DataLab