Why is Math.pow() (sometimes) not equal to ** in JavaScript?
问题 I've just discovered the ECMAScript 7 feature a**b as an alternative for Math.pow(a,b) (MDN Reference) and came across a discussion in that post, in which they apparently behave differently. I've tested it in Chrome 55 and can confirm that the results differ. Math.pow(99,99) returns 3.697296376497263e+197 whereas 99**99 returns 3.697296376497268e+197 So logging the difference Math.pow(99,99) - 99**99 results in -5.311379928167671e+182 . So far it could be said, that it's simply another