
Divide an arbitrary-precision integer by a small whole number
Source:R/bigint_native.R
morie_big_divmod_small.RdDivide an arbitrary-precision integer by a small whole number
Arguments
- a
Value coercible by
morie_bigint().- d
A positive whole number below 2^31.
Examples
r <- morie_big_divmod_small(morie_bigint("1000000000000000000007"), 7L)
str(r, max.level = 1)
#> List of 2
#> $ quotient :List of 2
#> ..- attr(*, "class")= chr "morie_bigint"
#> $ remainder: num 6