On a form used in our hospitals for pre-admitting patients I'm trying to calculate BMI from height and weight. I've put the formula in the script editor and it correctly calculates BMI, but when the form is first opened the following error message appears:
Script failed (language is formcalc; context is xfa[0].form[0].F[0].#subform[1].BMI[0]) script=(Weight*703)/Height*Height)
Error: arithmetic over/underflow.
I suspect this is because the denominator (Height*Height) is zero before a value has been entered into Height. Is this correct, and regardless whether it is or not, how can I avoid this error message? The users are nurses and they tend to unwind when they encounter technical error messages.