I have a web numeric editor in an ASP.NET application. When the value in the text editor box is 27.923 and I do a get_value() (client side), it returns me 27.923000000000002. We have a comparison routine where it checks for the previous value and new value and this even though is not changed, returns true because the previous value from the database was 27.923 and the new value in the web numeric editor = 27.923000000000002. How can i resolve this. I do not want to round or do any funny logical stuff with this. Any one has this experience, please share.
Hi Vikram.
Thank you for report.
Can you provide a simple sample, which would be used to reproduce that issue?I tried following codes, entered "27.923", clicked button and it showed "27.923".
<ig:WebNumericEditor ID="WebNumericEditor1" runat="server" MinDecimalPlaces="3"></ig:WebNumericEditor> <input type="button" value="check" onclick="alert('val: '+$find('WebNumericEditor1').get_value())" />