Java Math.round() methodThe java.lang.Math.round() is used round of the decimal numbers to the nearest value. This method is used to return the closest long to the argument, with ties rounding to positive infinity. SyntaxParameterReturn
Example 1Test it NowOutput: 80 Example 2Test it NowOutput: -84 Example 3Test it NowOutput: -9223372036854775808 Example 4Test it NowOutput: 9223372036854775807 Example 5Test it NowOutput: 0 Next TopicJava Math |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India