最佳答案
Official Javadoc says that Math.floor()
returns a double
that is "equal to a mathematical integer", but then why shouldn't it return an int
?