Tag: math.round

Java Rounding value round() Function

October 4, 2014 · 2 min read
**java.lang.Math** class comes with many methods to do simple basic numeric operations. One such one is **round()** method which returns always a nearest rounded integer/long value of a number. With round() method, a float or double value can be rounded off. Read down.

class Math Java

March 17, 2011 · 3 min read
**Introduction** The **java.lang.Math** class includes many methods with which many simple arithmetic operations can be done like finding the square root, rounding, trigonometric and logarithm functions. As these methods are defined as static, they can be used directly by the programmer without the trouble of creating an object. Following is the class signature as defined in the **java.lang** package.