Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

round()
The round() method returns the integer closest to the argument. The algorithm is to add 0.5 to the argument and truncate to the nearest integer equivalent. This method is overloaded to handle a float or a double argument.
    The signatures of the round() method are as follows : 
public static int round(float a)
public static long round(double a)
Posted By: Name:Rajesh Kr URL: round()