Ive got to sum up 5 numbers.
125000+23500.75 +5525725.79+325 7500+63542.36
When summing these i should get the answer as 8995268.9
but im getting the answer as 8995268.899999
My script code is as follows
------------------------------------------
var totalDebit =0;
(here dtAmt[i] contains each of the above specified numbers)
for(i=0;i<5;i++ ){
if(!isEmpty(dtA mt[i].value)){
totalDebit =parseFloat(tot alDebit) +parseFloat(dtA mt[i].value);
}
}
Y do i get the anonymous answer.?
125000+23500.75 +5525725.79+325 7500+63542.36
When summing these i should get the answer as 8995268.9
but im getting the answer as 8995268.899999
My script code is as follows
------------------------------------------
var totalDebit =0;
(here dtAmt[i] contains each of the above specified numbers)
for(i=0;i<5;i++ ){
if(!isEmpty(dtA mt[i].value)){
totalDebit =parseFloat(tot alDebit) +parseFloat(dtA mt[i].value);
}
}
Y do i get the anonymous answer.?
Comment