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

How to do multiplication

Former Member
0 Likes
634

Hi experts.

I need to multiply a fied with .916.

i deaclared a variable and assigned package decimal value as .916

i m not able to do multiplication.

I m gettg error in the pgm.

please let me know this

sincerely

Jayalakshmy

Hi experts.

I need to multiply a fied with .916.

i deaclared a variable and assigned package decimal value as .916

i m not able to do multiplication.

I m gettg error in the pgm.

please let me know this

sincerely

Jayalakshmy

4 REPLIES 4
Read only

Former Member
0 Likes
602

declare a float variable f = 0.916

b = a * f.

Read only

0 Likes
602

Hi still i m gettg error.

Read only

0 Likes
602

hi check this..

data: test type f value '.998' ,

test1 type i value 4,

test2 type f .

test2 = test1 * test .

write: test2 .

regards,

venkat

Read only

Former Member
0 Likes
602

This works


data:
  f1    type p decimals 3 value '.916',
  f2    type p decimals 3.

  f2 = f1 * 3.

  write:/ f2.