Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

floor statement - did not use F1...

HI experts.

Can anyone explain to me how to use the floor statement.

Thank you in advanced.

Edited by: Julius Bussche on Sep 8, 2008 7:16 AM

Tags:
Former Member
Former Member replied

hi,

Floor statement gives you the greatest integer value of a float quantity.

syntax

DATA A TYPE P DECIMALS 2.
DATA B TYPE P DECIMALS 2 VALUE '-5.55'.


A = FLOOR( B ). WRITE: / 'FLOOR:', N.

Result : 
FLOOR:-6.00

and

DATA A TYPE P DECIMALS 2.
DATA B TYPE P DECIMALS 2 VALUE '5.55'.


A = FLOOR( B ). WRITE: / 'FLOOR:', N.

Result :
FLOOR: 5.00

Regards,

Anirban

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question