# 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 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