Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8635

Re: Round FM and keyword issue

$
0
0

Joshva,

 

Change decimal places to '3' instead of '2'.

 

DATA: i1       TYPE p DECIMALS 4,

          o1      TYPE p DECIMALS 2,

          i2       TYPE p DECIMALS 4,

          o2       TYPE p DECIMALS 2.

 

 

i1 = '0.1147'.

i2 = '22.7919'.

 

CALL FUNCTION 'ROUND'

  EXPORTING

    decimals = 3

    input    = i1

    sign     = '+'

  IMPORTING

    output   = o1.

 

WRITE: o1.

 

CALL FUNCTION 'ROUND'

  EXPORTING

    decimals = 3

    input    = i2

    sign     = '+'

  IMPORTING

    output   = o2.

.

WRITE: o2.

 

Hope this helps,

Thanks

VM


Viewing all articles
Browse latest Browse all 8635

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>