It has the following syntax.
b: 'b' is the number, whose power is to be calculated.
e: 'e' is the exponent.
It returns the base 'b'raised to the power 'e'.
Here, we are going to discuss several examples to demonstrate the Math pow() Function
This example demonstrates how the pow() function calculates the power when both the base and exponent are integer values.
Output:
Power of a given number is :16
This example demonstrates how the pow() function calculates the power when the base value is a floating-point number and the exponent is an integer.
Output:
Power of a given number is :64
This example demonstrates how the pow() function calculates the power when both the base and exponent are floating-point values.
Output:
Power of a given number is :4
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India