0
Does Java have a floor division operator?
2 ответов
+ 8
Math.floor(x);
- 1
/ (division operator) in java.
This can applied according to your need in java.
int/int = int.
If any one is double or float, it result in double.. You can use type casting the result to int type. Or use floor(x/y).
Or just store in needed type.