Показать сообщение отдельно
Старый 13.08.2008, 01:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
C# and AX Development: Rounding in AX (real to integer)
Источник: http://olondono.blogspot.com/2008/08...o-integer.html
==============

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));}



Источник: http://olondono.blogspot.com/2008/08...o-integer.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.