Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
WebCurrencyEditor does not keep the correct values
posted

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.

Parents Reply Children
No Data