Skip to Content
0
Former Member
Apr 18, 2008 at 06:58 PM

how to set the fixed point arithmetic

617 Views

In the below code, what does it mean by fixed point arithmetic and how to set in ?

DATA: pack TYPE p DECIMALS 2.

pack = '12345'.

WRITE pack.

If the program attribute Fixed point arithmetic is not set, the output is as follows:

123,45

If the program attribute Fixed point arithmetic is set, the output is as follows:

123.45,00