R/intdiv.R

intdiv = function(dividend, divisor) {
   a = as.integer(dividend)
   b = as.integer(divisor)

   sign(a) * (abs(a) %/% b)
}

Try the astrolibR package in your browser

Any scripts or data that you put into this service are public.

astrolibR documentation built on May 2, 2019, 3:26 a.m.