Round Function for Decimal

Fungsi round dalam program adalah untuk melakukan pembulatan pada suatu bilangan.
Berikut adalah contoh penggunaannya di dalam SAP:

REPORT yround.

PARAMETERS: p_dec type p LENGTH 13 DECIMALS 2,
            p_round TYPE i.

data: d_result type p LENGTH 13 DECIMALS 2.

d_result = round( val = p_dec dec = p_round ).
WRITE: d_result.

Hope it helps

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s