Skip to Content

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

Need to carry all the calculations to the fourth decimal place

Dear All,

I need to carry all the calculations to the fourth decimal place.

When the calculation value is more than 0.00005 than round up to the next 0.0001 (to the next fourth decimal place value). Otherwise, round down to the next 0.0001 (to the next forth decimal place value).

Will you kindly provide me some code for this?

Thanks in Advance,

KCRanjan

Tags:
replied

hi,

chk this

REPORT  ychatest                                .

data : p_amy type p decimals 4.

p_amy = '123.13567'.

write : p_amy.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question