|
VBscript, right?
You gotta coerce it to use integers. Depending on the browser, version of IIS, hair color, phase of the moon, etc, forcing one just one of the numbers in the equation may still give you, er, unreliable results.
Start out with cint(avg) = total / five to force the result to an integer.
Or you could go whole-hog and use
cint(avg) = cint(total) / cint(five) ("five" is a variable, by the way)
This will convert all three terms in the equation to integers.
|