实例 R 语言算术运算符整除

x
 
15 %/% 2
# the integer divison (%/%) rounds the result down to the nearest whole number
                    

输出结果

[1] 7