Java Math Class
DevSniper
179 Views
java Math (java.lang.Math)
class provides many mathematical methods for performing basic numeric operations such as exponential, logarithm, rounding, square root, trigonometric, etc.
- Math.max(x,y)
- Math.min(x,y)
- Math.signum(x)
- Math.abs(x)
- Math.pow(x,y)
- Math.random()
- Math.sqrt(x)
- Math.cbrt(x)
- Math.ceil(x)
- Math.floor(x)
- Math.round(x)
- Math.rint(x)
- Math.exp(x)
- Math.log(x)
- Math.log10(x)
- Math.hypot(x,y)
- Math.sin(x)
- Math.cos(x)
- Math.tan(x)
- Math.asin(x)
- Math.acos(x)
- Math.atan(x)
- Math.atan2(x)
- Math.toDegrees(x)
- Math.toRadians(x)