Application Development 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: 

how to convert the numbers?

Former Member
0 Kudos

hi everyone:

I have a problem about how to convert the numbers ?

it is below:

4,7100000000000E+02=================>4,71

I thought there is a function to do it .

So pls help .

thanks in advance .

Regards.

Nick

3 REPLIES 3

former_member223537
Active Contributor
0 Kudos

data : l_temp(4) type c.

move l_data to l_temp.

Former Member
0 Kudos

Hi Nick,

Just try this code. U will get idea.

Report ZCONVERT.

data decimal type f value '345'.

****SEE EVERYTHING DEPENDS UPON U R SPECIFIED DECIMAL NUMBER

****IN THE PACK DATA TYPE

****exact syntax is..... DATA no_er TYPE P DECIMALS number of decimals.

data integer type p .

write : decimal.

integer = decimal.

write integer color 5.

Regards,

Surya

Former Member
0 Kudos

Hi,

<b>U please try in SE37, using CONVERT function module.</b>

Reward if found useful.