About 57,700 results
Open links in new tab
  1. pow - Does Java have an exponential operator? - Stack Overflow

    FYI, a common mistake is to assume 2 ^ 3 is 2 to the 3rd power. It is not. The caret is a valid operator in Java (and similar languages), but it is binary xor.

  2. Java Math pow () Method - W3Schools

    A double value representing the result of the base to the power of the exponent. Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, …

  3. Math pow () Method in Java with Example - GeeksforGeeks

    Mar 28, 2025 · The Math.pow () method in Java is used to calculate a number raised to the power of some other number. It is part of the java.lang.Math class and is widely used in mathematical …

  4. Math (Java Platform SE 8 ) - Oracle Help Center

    The class Math contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions.

  5. How to do Exponents in Java? - Letstacle - Programming Help

    Jul 1, 2021 · Exponents in Java are often used while coding. Learn two different ways to calculate exponents in Java with code examples.

  6. Mastering the Java Exponent Operator - javaspring.net

    Nov 12, 2025 · Instead, Java provides alternative ways to calculate exponents. This blog will explore the fundamental concepts, usage methods, common practices, and best practices …

  7. What is Java Exponent? How to do exponents in Java?

    Mar 14, 2025 · One such Mathematical Problem is the “Exponents in Java”. In Java, there are several methods present by which we can do the exponent operation where a value is raised …

  8. Java | Math Methods | .pow() | Codecademy

    Sep 6, 2022 · Java doesn’t have a built-in exponentiation operator (^ is the XOR operator). Math.pow() is the standard way to perform exponentiation in Java, providing accurate results …

  9. Raising a number to a power in Java - Stack Overflow

    Height/100 uses integer division, which might not be what you're looking for. ^ in java does not mean to raise to a power. It means XOR. You can use java's Math.pow() And you might want …

  10. How to Do Exponents in Java - Techwalla

    You can use the math.pow Java command to calculate an exponent in Java. This involves importing java.lang.math and using the function to calculate the exponent after defining a …