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

packed numbers

Former Member
0 Likes
815

what does this mean :-

data : value(3) type p decimals 2. does 3 denote lenght ????

6 REPLIES 6
Read only

Former Member
0 Likes
784

Actually the formula is :-

if val(n) type p decimals 2 value 343.54. (here u must specify n value)

2n-1 is the total characters.

2 bytes will store a character / number

in the above case if u give n as 3,

it is interpreted as 2 * 3 - 1 = 5 characters.

3 bytes 34 - 1 byte , 35 - 2nd byte 4D - 3rd byte (D here is sign + or - ).

Read only

0 Likes
784

Hmmmmmmmmmmmmmmmmmmmmmmmm

pk

Read only

0 Likes
784

Not again.

Read only

Former Member
0 Likes
784

yes it indicates the length.

Read only

matt
Active Contributor
0 Likes
784

It means that soon we'll have another couple of guests, and your employer points total may reduce substantially - and they'll know it was down to you. Have a nice day.

matt

Read only

Former Member
0 Likes
784

Yes '3' stands for length. but in case of this data type no means for this length.

Only for character type value this has some means.

If you define as

DATA : P_VAL type c valur 'anil'.

WRITE:/ p_val.

then it will display only 'a' i'e only first character.

and if you write it as

DATA : P_VAL type c valur 'anil'.

WRITE:/ p_val.

now it will display anil.

Regds,

Anil