To: users, apache users@flex.apache.org
Sent: Tuesday, November 11, 2014 2:37:08 PM
Subject: RE: Math.pow in ActionScript
NO NO NO.
16 to the power 14 is indeed 72057594037927936. Calculator is absolutely
correct. It is presumably doing high-precision integer arithmetic.
ActionScript is using
argument, multiplying it by the
second argument, and then taking the exp() of the result, because a^b =
e^(ln(a^b)) = e^(b ln(a)). These are all floating-point operations.
- Gordon
From: javi...@gmail.com
Date: Tue, 11 Nov 2014 19:48:38 +0100
Subject: Re: Math.pow in ActionScript