How to round currency amount

hello friends.

I want to round the currency value to the two decimal. NOW base curr is INR.
FOR eg : if it is 25.567 it should get rounded to 25.57 but I am using gpcurfmat.p round it to 25.99 Please give some solution if time permits..I want to keep rounding method dynamic...I have added code that take rounding method from currency maintenance using

{gprunp.i "mcpl" "p" "mc-get-rnd-mthd"
"(input tta_curr,
output rndmthd,
output mc-error-number)"}
 
Currency maintenance is the only to round up the value . You must get 25.57 when you round 25.567. If you dont there is a bug.
 
Top