Java Math.min() method21 Mar 2025 | 1 min read
Syntax:Parameters:Return:
Example 1:Output: 20 Example 2:Output: -38.67 Example 3:Output: -55.73 Next TopicJava Math |
Java method The java.lang. returns the difference of the arguments. It will throw an exception if the result overflows either int or long. Syntax public static int subtractExact(int a, int b) public static long subtractExact(long a, long b) Parameter a = the first value b = the second value to...
2 min read
Java method The java.lang. is used to calculate the trigonometric Arc Sine of an angle. Arc Sine is also called as inverse of a Sine. This method returns the values between -Π / 2 and Π /2. Syntax public static double asin(double a) Parameter a = the value whose...
2 min read
Java method The java.lang. is used to find out the Logarithmic Value of any number. This method returns the natural logarithm (base e) of a double value as a parameter. Syntax public static double log(double x) Parameter x= a value entered by user Return This method returns the value In a,...
2 min read
Java Math.Down() method The java.lang.Math.Down() is a built-in math method in java. It returns the floating-point value adjacent to the user specified parameter (d) in the direction of negative infinity. This method is equivalent to After(d, Double.NEGATIVE_INFINITY) method. Implementation of Down may run faster than its equivalent...
2 min read
Java method The java.lang. returns the value of long argument. It will throw an exception if the result overflows either int or long. Syntax public static int toIntExact (long a) Parameter a = the long value Return It returns the input argument as an int(integer) . If the argument is Long.MAX_VALUE or...
1 min read
Java method The java.lang. is used to compute the remainder operation on two arguments as prescribed by the IEEE 754 standard. The remainder value is mathematically equal to a-b n, where n is the mathematical integer closest to the exact mathematical value of the quotient...
3 min read
Java () method The java.lang.() is a built-in math function in java which is used to convert an angle measured in radians to an approximately equivalent angle measured in degrees. Syntax public static double toDegrees(double x) Parameter x = an angle, in radians Return It returns the measurement of the angle x...
2 min read
Java method The java.lang. is used to find the largest integer value that is less than or equal to the algebraic quotient. This method first divide the first argument by the second argument and then performs a floor() operation over the result and returns the...
2 min read
Java method The java.lang. is used to return the square root of a number. Syntax public static double sqrt(double x) Parameter x= a value Return This method returns the square root of x. If the argument is positive double value, this method will return the square root of a given value. If the...
2 min read
Java method The java.lang. is used to return the hyperbolic tangent of a value. The hyperbolic tangent of any value x can be defined as ((ex - e -x)/2) / ((ex + e -x)/2), where e is an Euler's number. We can say that tanh(a)...
2 min read
We request you to subscribe our newsletter for upcoming updates.
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India