Hi - I need help with a simple javascript calculation. I wrote this javascript:
var cons = this.getField("Text6.0")
var cons = this.getField("Text5.0")
if (plan.value != 0)
event.value = cons.value - plan.value / plan.value
else
event.value = ""
However, the calculation doesn't work right. For Example
105 - 100 / 100 should equal to .05%, however, the script comes out to 0.00%. Is there a better way to write a script so that the answer comes to .05%?
Thanks
Connie
Check your calculation for the correct order of arithmetic operators execution.
George Kaiser