Skip to Content
0
Former Member
Jul 28, 2005 at 05:03 PM

Problem in data type

31 Views

Hi,

We are facing a problem with one of our programs. It has to do with Decimal Notation.If you change the decimal as type p decimals 3 then execute the program the value becomes 10 times the original value. If you change it to type p decimals 2 then the value is corrrect after converting to currency. Any inputs are appreciated.

REPORT ZAVEEK.

DATA: l TYPE p DECIMALS 2 VALUE '234.567',

charout(16) TYPE c,

charout1(16) TYPE c.

WRITE: l TO charout CURRENCY 'GBP'.

MOVE l TO charout1.

WRITE: / l,

/ charout,

/ charout1.

regards

Aveek