Quantcast
Channel: AX Developer Forum
Viewing all articles
Browse latest Browse all 9880

Round Function in axapta

$
0
0

Hi Friends,

                      please check the following code.

static void Job9(Args _args)
{
  real a,b,c,d,e;
  ;
     a=2991.93;
      b=Round(((a*100)/104.944),0.01);
      c=Round(((b*4.80)/100),0.01);
      d=Round(((c*2)/100),0.01);
      e=Round(((c*1)/100),0.01);

    info(strfmt('%1',a));
    info(strfmt('%1',b));
    info(strfmt('%1',c));
    info(strfmt('%1',d));
    info(strfmt('%1',e));

 

}

problem is after calucaltion,the total sum is not equal

we have to equal a=b+c+d+e

but it is not equal.some 0.01 difference is coming

 

thanks in adavance

Murali

 

 

 


Viewing all articles
Browse latest Browse all 9880

Trending Articles