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

How find size of recordsortedlist in D365/AX 2012

Hi, This is the continuity of the previous article where we are now getting the size of recordsortedlist . if(recordsortedlist.len() >1) ...