cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Math.pow vs. decimal exponents

StephaneGuedon
New Contributor

Hello,

Weโ€™ve been trying to implement a calculation using a decimal exponent into Math.pow
Each time the exponent is a decimal and not strictly an integer, we get 1 as a result.

Current result is the following
Math.pow(2,2) gives 4
Math.pow(2,3) gives 8
Math.pow(2,3.5) gives 1

Did someone encounter this behaviour ?

Thanks for your help
Stรฉphane

1 REPLY 1

dmiller
Admin Admin
Admin

This appears to be a bug. The issue has been sent to our development team.


Diane Miller
Community Manager