📜  devision 在 Java 代码示例中是如何工作的

📅  最后修改于: 2022-03-11 14:52:28.798000             🧑  作者: Mango

代码示例1
Java does integer division, which basically is the same as regular real division, but you throw away the remainder (or fraction). Thus, 7 / 3 is 2 with a remainder of 1. Throw away the remainder, and the result is 2.

Integer division can come in very handy.