Menu
Hi, looking for some help here. All I am trying to do is add two numbers. 138.9 + 27.33 and instead of 166.23 i get 166.2300000000002. Can anyone tell me why? Here is my code
function button1_onclick() {
var TallyAmt = 0;
ThisAmt = document.form1.text1.value;
TallyAmt = (TallyAmt + (ThisAmt * 1));
alert (TallyAmt);
ThisAmt = document.form1.text2.value;
TallyAmt = (TallyAmt + (ThisAmt
alert (TallyAmt);
ThisAmt = document.form1.text3.value;
TallyAmt = (TallyAmt + (ThisAmt * 1));
alert (TallyAmt);
}
Thanks a bunch