AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 22.11.2010, 01:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
xplusplus: Warning: Assignment/Comparison loses precision.
Источник: http://xplusplus.info/index.php/warn...ses-precision/
==============



This warning appears when trying to convert Real or Int64 variables to int, like in the following example:
info(int2str(emplTable.RecId)); emplTable.RecId returns a Int64 value, and by converting it through int2str function we actually changing the data.
The solution is to use the correct converting function, in that case it is int642str()
info(int642str(emplTable.RecId));


Источник: http://xplusplus.info/index.php/warn...ses-precision/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
xplusplus: Warning: Empty compound statement Blog bot DAX Blogs 2 22.11.2010 10:14
xplusplus: How to read data from text (.txt) file with AsciiIo Blog bot DAX Blogs 0 22.11.2010 01:11
emeadaxsupport: You get a warning message when deploying the AX 2009 smmOpportunityReports report library Blog bot DAX Blogs 0 19.02.2010 05:07
Dynamics AX: Dynamics AX 2009 - X++, C# Comparison Blog bot DAX Blogs 2 20.02.2009 13:21
Issues concerning X++: Getting rid of the "Loss of precision" warning message Blog bot DAX Blogs 2 12.07.2007 18:22

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 02:06.