Java的%运算符支持整数、浮点数,对于整数,它的计算公式等于; a % b = a - (int)(a / b) * b; 转载于:https://www.cnblogs.com/shiraishi/p/11351902.html