Computer Applications
Explain the following Math functions in Java:
Math.round()
Java Math Lib Methods
23 Likes
Answer
Rounds off its argument to the nearest mathematical integer and returns its value as an int or long type. If argument is float, return type is int, if argument is double, return type is long. At mid-point, it returns the higher integer. For example, Math.round(2.5) will return 3.
Answered By
16 Likes