SAP Tutorials Blog

 

 


DATA n TYPE p DECIMALS 2.

DATA M TYPE p DECIMALS 2 VALUE '-3.55'.

n = ABS( M ).  WRITE:  'ABS: ', n.

n = SIGN( M ). WRITE: / 'SIGN: ', n.

n = CEIL( M ). WRITE: / 'CEIL: ', n.

n = FLOOR( M ). WRITE: / 'FLOOR:', n.

n = TRUNC( M ). WRITE: / 'TRUNC:', n.

n = FRAC( M ). WRITE: / 'FRAC: ', n.


output: 


ABS:               3.55

SIGN:              1.00-

CEIL:              3.00-

FLOOR:          4.00-

TRUNC:          3.00-

FRAC:             0.55-


Serkan AKKAVAK

Computer Engineer BSc

SAP Department Manager

Contact : serkurumsal@yandex.com