Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Tuesday, February 25, 2014

Round off the decimal in Dynamic AX 2012

Hi,
//To round off all digit after decimal.
static void roundOff(Args _args)
{
real numb;
;
    numb = trunc(4.68989);
    print strfmt("Round off number= %1",  numb);
    pause;
}

Out put

Round off number= 4.00

Regards,

No comments:

Post a Comment

SQL code to upate one Legal entity banner to all the legal entity in D365

 Hi, update companyimage set  companyimage.Image  = companyimageA.Image  from  ( select Image from companyimage where dataAreaid = 'USF...