Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

missing )

Former Member
0 Likes
701

hi,

i get the error,

incomple arithmetic expression. missing ")" at end of statement.

my expression is

L_BKED = L_BKED + ( ( WA_XVBAP-KWMENG ) * ( 0.05 ) ).

all operands and operators are properly spaced out !!

whats wrong ??

thks

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
674

Put single quotes around 0.05.

L_BKED = L_BKED + ( ( WA_XVBAP-KWMENG ) * ( '0.05' ) ).

Regards,

Rich Heilman

4 REPLIES 4
Read only

bpawanchand
Active Contributor
0 Likes
674

>

> L_BKED = L_BKED + ( ( WA_XVBAP-KWMENG ) * ( 0.05 ) ).

>

w_var1 = WA_XVBAP-KWMENG * 0.05 .

L_BKED = L_BKED + w_var2.

Regards

Pavan

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
675

Put single quotes around 0.05.

L_BKED = L_BKED + ( ( WA_XVBAP-KWMENG ) * ( '0.05' ) ).

Regards,

Rich Heilman

Read only

Former Member
0 Likes
674

First, you dont need all these paranthesis.

Second the constant should always be in quotes '0.05'. Change this and you wont get the error.

Read only

Former Member
0 Likes
674

Hi,

you need to put parentheses whenever you are using decimals in your calculation method.

Please reward if you find the answer useful.

Thanks,

Kamesh