Operator Precedence
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
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
This discussion has been closed.
Comments
There is now a patch for RB 11.01 that solves this issue. Please send an
email to support@digital-metaphors.com if you would like the patch. Please
note that the patch will only work with RB 11.01.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com