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 display decimal

Former Member
0 Kudos
228

Hi ,

My piece of code is :

data : x type i,

y type i,

z type p decimals 2.

x = 34.

y = 5.

z = x / y.

write : / z.

output is : 6,80

but i want output as : 6.80

instead of comma i want decimal point.

How can i do that.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
202

This is based on your User Defaults.

Go to System->User Profile->Own Data

Defaults Tab, change your Decimal Format.

6 REPLIES 6

Former Member
0 Kudos
203

This is based on your User Defaults.

Go to System->User Profile->Own Data

Defaults Tab, change your Decimal Format.

0 Kudos
202

thanx but which format i need to take for this :

i have tried all three :

1.234.567,89 or

1 234 567,89 or

1,234,567.89

0 Kudos
202

Try the last one.

don't forget to save the user profile.

And you may need to logoff and then back on to get the changes.

0 Kudos
202

select this 1,234,567.89 .

Thanks,

Santosh

0 Kudos
202

points awarded to both ...thanx

Former Member
0 Kudos
202

You may also go to SU01 t-code and enter your user id. Check the settings under Defaults tab.

Thanks,

Santosh