有人能告诉我在java中Math.floorMod()和%有什么区别吗?
我当时很迷惑
int a = 3; int b = -2; System.out.println(a % b); System.out.println(Math.floorMod(a,b));
结果是1 -1而不是11
https://stackoverflow.com/questions/52377246
相似问题