📜  math.rint 是如何工作的 - 任何代码示例

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

代码示例1
The Java Math rint() method returns a value that is closest to the specified value and is equal to the mathematical integer. That is, if the specified value is 5.8, the closest value that is equal to the mathematical integer is 6.0. And, for value 5.4, the closest value that is equal to mathematical integer is 5.0.