marklarah Posted November 14, 2009 Share Posted November 14, 2009 Try running this in your address bar javascript:alert(1.1^12); last time I checked, 1.1 to the power twelve was not 13! What is going here? Quote Link to comment Share on other sites More sharing options...
smerny Posted November 14, 2009 Share Posted November 14, 2009 Math.pow(1.1,12) Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted November 14, 2009 Share Posted November 14, 2009 In most programming languages ^ is not a math operator. Specifically, in javascript, it is Bitwise XOR. Quote Link to comment Share on other sites More sharing options...
marklarah Posted November 14, 2009 Author Share Posted November 14, 2009 thanks... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.