Groovy – exp()
The method returns the base of the natural logarithms, e, to the power of the argument. Syntax double exp(double d) Parameters d - Any primitive data type. Return Value This…
The method returns the base of the natural logarithms, e, to the power of the argument. Syntax double exp(double d) Parameters d - Any primitive data type. Return Value This…
The method gives the maximum of the two arguments. The argument can be int, float, long, double. Syntax double max(double arg1, double arg2) float max(float arg1, float arg2) int max(int…
The method gives the smaller of the two arguments. The argument can be int, float, long, double. Syntax double min(double arg1, double arg2) float min(float arg1, float arg2) int min(int…
The method round returns the closest long or int, as given by the methods return type. Syntax long round(double d) int round(float f) Parameters d - A double or float…
The method rint returns the integer that is closest in value to the argument. Syntax double rint(double d) Parameters d - it accepts a double value as parameter. Return Value…
The method floor gives the largest integer that is less than or equal to the argument. Syntax double floor(double d) double floor(float f) Parameters − A double or float primitive data…
The method ceil gives the smallest integer that is greater than or equal to the argument. Syntax double ceil(double d) double ceil(float f) Parameters − A double or float primitive data…
The method gives the absolute value of the argument. The argument can be int, float, long, double, short, byte. Syntax double abs(double d) float abs(float f) int abs(int i) long…
This method is used to get the primitive data type of a certain String. parseXxx() is a static method and can have one argument or two. Syntax static int parseInt(String…
The method is used to get a String objects representing the value of the Number Object. If the method takes a primitive data type as an argument, then the String…