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

Data type

Former Member
0 Likes
1,315

Hi,

i have one doubt.Is it possible to move the floating point data type into char data type.

floating type : ausp-atflv is the floting poing(i_atflv).

ws_char is the character type.

move i_atflv to ws_char.

Is it possible?

Thanks & Regards,

sudhakar

1 ACCEPTED SOLUTION
Read only

former_member196280
Active Contributor
0 Likes
1,295

Yes, it is possible

Ex: Float = '3.543'.

MOVE FLOAT TO CHAR.

CHAR will have 3.543E+00

Reward points to all useful answers.

Regards,

SaiRam

10 REPLIES 10
Read only

Former Member
0 Likes
1,295

Hi Sudhakar,

Yes it is possible.

Reward points if useful.

Regards,

Atish

Read only

Former Member
0 Likes
1,295

hi,

It is possible.

Read only

0 Likes
1,295

ya it is possible

rgds,

bharat.

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
1,295

Hi Sudhakar

<b>Yes...it can be possible.</b>

Regards,

Sree

Read only

anversha_s
Active Contributor
0 Likes
1,295

hi,

chk this.

* Converting type p to type c
DATA: p1(4) TYPE P VALUE 124,
          c1(4) TYPE.

MOVE: p1 TO c1.

write c1.

Rgds

Anversha

Read only

Former Member
0 Likes
1,295

Hi,

Surely it is.

Regards,

Suruchi

Read only

Former Member
0 Likes
1,295

hi suhhakar goud goud ,

Its Possible.

Check this code,

data : a type f value '12.45',

b(10).

move a to b.

write : b.

uline.

write : a.

Thanks,

Reward If Helpful.

Read only

former_member196280
Active Contributor
0 Likes
1,296

Yes, it is possible

Ex: Float = '3.543'.

MOVE FLOAT TO CHAR.

CHAR will have 3.543E+00

Reward points to all useful answers.

Regards,

SaiRam

Read only

0 Likes
1,295

Hi,

Thanks for all replies.i will assign points to all.

Thanks & regards,

sudhakar.

Read only

Former Member
0 Likes
1,295

Hi,

yes you can move floating pointr data into character variable.

Regards

Jitendra