📜  java 整数除法到浮点数 - Java 代码示例

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

代码示例1
instead of writing
v = s/i (this does integer division)
write v = (float)s / i