java.lang.Math rint(double a)
This java tutorial shows how to use the rint(double a) method of Math class under java.lang package. This method returns the double value that is closest in value to the argument and is equal to a mathematical integer. If two double values that are mathematical integers are equally close, the result is the integer value that is even.
This method in simple language is simply here to round the double method argument.
Method Syntax :
public static double rint(double a)