Groovy – sin()
The method returns the sine of the specified double value. Syntax double sin(double d) Parameters d - A double data type. Return Value This method Returns the sine of the…
Groovy
The method returns the sine of the specified double value. Syntax double sin(double d) Parameters d - A double data type. Return Value This method Returns the sine of the…
The method returns the square root of the argument. Syntax double sqrt(double d) Parameters d - Any primitive data type. Return Value This method Returns the square root of the…
The method returns the value of the first argument raised to the power of the second argument. Syntax double pow(double base, double exponent) Parameters base - Any primitive data typeexponent…
The method returns the natural logarithm of the argument. Syntax double log(double d) Parameters d - Any primitive data type. Return Value This method Returns the natural logarithm of the…
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…