LogIn
I don't have account.

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.

  1. Math.max(x,y)
  2. Math.min(x,y)
  3. Math.signum(x)
  4. Math.abs(x)
  5. Math.pow(x,y)
  6. Math.random()
  7. Math.sqrt(x)
  8. Math.cbrt(x)
  9. Math.ceil(x)
  10. Math.floor(x)
  11. Math.round(x)
  12. Math.rint(x)
  13. Math.exp(x)
  14. Math.log(x)
  15. Math.log10(x)
  16. Math.hypot(x,y)
  17. Math.sin(x)
  18. Math.cos(x)
  19. Math.tan(x)
  20. Math.asin(x)
  21. Math.acos(x)
  22. Math.atan(x)
  23. Math.atan2(x)
  24. Math.toDegrees(x)
  25. Math.toRadians(x)