Hi,
In our ASP.NET web application we have used a WebCurrencyEditor control (Infragistics4.Web.v12.2).
Function ShowValue()
{ var oAmount = $find(getPageElement("Amount").id);
alert(“value: ”+ oAmount.value +”\br get value”+ oAmount.get_value());
}
When we enter some values e.g. 4.94, 5.94, 6.94, 7.94 and focus out the control, those values becomes 4.93, 5.93, 6.93, 7.93. When I debug the application I saw value and get_value properties give different values.
E.g. original value = 4.94 oAmount.value = 4.9399999999999995 oAmount.get_value() = 4.93
This does not happen to all values. Does anyone have any solution to overcome this issue?
Thanks.
Hello,
Thank you for using our product!
I have create a sample in order to reproduce the issue, but everything seems okay (See the attached image).
Code snippet:
.......
In order to reproduce the issue and further investigate it, could you please send me isolated sample where the issue is reproduced.
This will be highly appreciated!
Looking forward to hearing from you.
Hi Zdravko Kolev,
Could you please look into the sample application I have attached herewith?
Hi Zdravko,
Thanks for the reply. Here the issue is when we type 7.94 and focus out the currency editor, value becomes 7.93. The issue happens not only with the currency editor control but also with the numeric editor control.
I created a sample app using your code. The issue is still there.
Before
After
I have attached the sample application written in VS2012 herewith. Please add the reference to Infragistics4.Web.v12.2.dll when you run it.