sa******@yahoo.com <sa******@yahoo.com> wrote:
: Please, I need expression to be used in a field in FORM. After I
: divided 2 numbers I want the result be rounded to the nearest "half".
: Also, when I sum " [q1]+[q2]/2. I get wrong answer for exampmle 4.5+2
: / 2. the result should be 3.25 but the I got 4.25 . Any idea how to fix
: the problem. Thank you
I think that you had q1 = 2 and q2 = 4.5.
Your expression sums 2 + 4.5/2. = 2 + 2.25 = 4.25 -- only q2
is divided by 2.
You want to use parentheses:
( [q1] + [q2] ) / 2.
so that *both* numbers are divided by 2.
Salad has already given you a way to get the result that
you want.
--thelma