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? Link to comment https://forums.phpfreaks.com/topic/181518-solved-javascript-your-math-sucks/ Share on other sites More sharing options...
smerny Posted November 14, 2009 Share Posted November 14, 2009 Math.pow(1.1,12) Link to comment https://forums.phpfreaks.com/topic/181518-solved-javascript-your-math-sucks/#findComment-957509 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. Link to comment https://forums.phpfreaks.com/topic/181518-solved-javascript-your-math-sucks/#findComment-957511 Share on other sites More sharing options...
marklarah Posted November 14, 2009 Author Share Posted November 14, 2009 thanks... Link to comment https://forums.phpfreaks.com/topic/181518-solved-javascript-your-math-sucks/#findComment-957581 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.