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

##### Guest replied

hi,

chk this

REPORT ychatest . data : p_amy type p decimals 4. p_amy = '123.13567'. write : p_amy.