Java Math.log1p() method returns natural logarithm (base e) of the sum of argument and 1. In simple words log1p(num) returns log(num+1). public class JavaExample {… [Read More]
Java Math.log10() Method
Java Math.log10() method returns base 10 logarithm of the double argument. In this tutorial, we will discuss log10() method with examples. Syntax of Math.log10() method… [Read More]
Java Math.log() Method
Java Math.log(double num) method returns natural logarithm of the double value num. The natural logarithm is also known as base e logarithm. The e is… [Read More]
Java Math.toIntExact() Method
Java Math.toIntExact() method returns the long argument as an int. This method accepts long data type value as an argument and returns the equivalent integer… [Read More]
Java Math.negateExact() Method
Java Math.negateExact() method returns negation of the argument. If the given argument is positive, it returns the same argument with negative sign and vice versa…. [Read More]
Java Math.decrementExact() Method
Java Math.decrementExact() method returns the argument after decreasing it by one. In this tutorial, we will discuss decrementExact() method with examples. public class JavaExample {… [Read More]
Java Math.incrementExact() Method
Java Math.incrementExact() method returns the argument after increasing it by one. In this tutorial, we will discuss incrementExact() method with examples. public class JavaExample {… [Read More]
Java Math.multiplyExact() Method
Java Math multiplyExact() method returns the product of its arguments. In this tutorial, we will discuss multiplyExact() method with examples. public class JavaExample { public… [Read More]
Java Math.subtractExact() Method
Java Math.subtractExact() method returns the difference of its arguments. It subtracts the value of second argument from the first argument and returns the result. public… [Read More]
Java Math.addExact() Method
Java Math.addExact() method returns sum of its arguments. public class JavaExample { public static void main(String[] args) { int i = 10, i2 = 20;… [Read More]
- « Previous Page
- 1
- …
- 10
- 11
- 12
- 13
- 14
- …
- 65
- Next Page »