Home RAP

Operator Precedence

edited November 2008 in RAP
Hello,

Picked up the following on operator precedence:

In the RAP Code under the OnCalculate event, add the following calculation:

(1*0+2*2+3*1)/(0+2+1)

If you preview the report, the result is 5 where is should be 2.33333333333

If you change the calculation to:

((1 * 0) + (2 * 2) + (3 * 1))/ (0 + 2 + 1)

The correct total is calculated, i.e. 5

Using RB 10 now - is this in line to be resolved any time soon?
Regards,
Gilbert

Comments

This discussion has been closed.