Skip to Content
0
Former Member
Apr 24, 2009 at 06:32 PM

Decimal with point to comma

8864 Views

Hi ABAP experts

I have a variable char(20) that I'm transfering to "type p decimals 5". But when this happen, instead of a comma, the number is displayed with point. For example:

v_deci = 0.4476 instead of v_deci = 0,4476

This is causing me a lot of problems because after this conversion I have to make a division but with the point the calculation of the division is wrong. For example

Is doing: 100 / 4467 instead of 100 / 0.4467

Is not respeting the decimal separator (that is the point '.'). So I'm thinking that if I change the point for the comma, maybe the calculation will be ok.

I only want a five decimals number with comma.

Let me know your thoughts. Thanks!!