How to perform a successful round in AX from real to integer?…
Well, the answer is: use the function decround.
static void Job1(Args _args) { int i, ii; real r = 334.55, r2 = 334.14; ; i = decround(r, 0); ii = decround(r2, 0); // It shows 335, 334 info(strfmt("%1, %2", i, ii)); }