How to raise a number to a fractional power
I am trying to make a simple online calculator which among other things has to raise to power 3/7 a number entered by a user.
Originally Posted by lzr
alert( Math.pow( 2, 3 / 7 ) )
Thanks. I did not realize Math.pow can use a fractional exponent. Somehow in all examples I saw it was integer.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)