Java Math.log10() method21 Mar 2025 | 2 min read The java.lang.Math.log10() is used to find out the Logarithmic of a number when the base is 10. This method returns the base 10 logarithm of a double value. SyntaxParameterReturn
Example 1Output: 1.5899496013257077 Example 2Output: 5.0 Example 3Output: Infinity Example 4Output: NaN Example 5Output: -Infinity Next TopicJava Math |
Java method The java.lang. is used to return the trigonometric tangent of an angle. Syntax public static double tan(double a) Parameter a = an angle, in radians Return It returns the tangent value of the argument. If the argument is positive or negative number, this method will return the Tangent value. If the...
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. method returns the absolute (Positive) value of a int value. This method gives the absolute value of the argument. The argument can be int, double, long and float. Syntax: public static int abs(int i) public static double abs(double d) public static float abs(float f) public static...
2 min read
Java Math.Up() Method The java.lang.Math.Up() is a inbuilt math method in java. It returns the floating-point value adjacent to the user specified parameter (d) in the direction of positive infinity. This method is equivalent to After(d, Double.POSITIVE_INFINITY) method. Implementation of Up may run faster than its equivalent...
2 min read
Java method The java.lang. returns the argument decremented by one. It will throw an exception if the result overflows either int or long. Syntax public static int DecrementExact (int a) public static long decrementExact (long a) Parameter a = the value to decrement Return It returns the argument decremented by one....
2 min read
Java Method In the realm of Java programming, randomness plays a crucial role in various applications, ranging from simulations and gaming to cryptography and statistical analysis. Java offers several tools to generate random numbers, among which the method stands out as a simple yet...
3 min read
Java method The java.lang.Math.cbrt () is used to return the cube root of a number. Syntax public static double cbrt(double x) Parameter x= a value Return This method returns the cube root of x. If the argument is positive or negative double value, this method will return the cube root of a...
2 min read
Java method The java.lang. is used to return the Euler's number e raised to the power of a double value and subtract one form it. Here, e is an Euler's number and it is approximately equal to 2.718281828459045. Syntax public static double expm1(double x) Parameter x = It is...
2 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 Math.After() method The java.lang.Math.After() returns the floating-point number adjacent to the first argument in the direction of the second argument. If both first argument and second argument are same then this method will return second argument. Syntax: public static double After(double a, double b) public static float After(float...
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