int a = 1%2; //结果为1 int b = -1%2; //结果为-1 double c = 5.2%2; //结果为1.2000000000000002 转载于:https://www.cnblogs.com/YESheng/p/3673308.html