Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by V Krishna Prabakar on May 26, 2009 12:47
open dhtmlx forum
Dhtmlx slider gives problem when working with the decimal Values

Hi

Im using the dhtmlx slider and it gives a problem when i set the step with decimal value

<script>
var slider3=new dhtmlxSlider("slidercont3", 178);
slider3.linkTo('text2');
slider3.setMin(0.50);
slider3.setMax(5.0);
slider3.setStep("0.01");
slider3.attachEvent("onChange", saving_per_truck);
slider3.init();
</script>

When i try setting the value using slider3.setValue(1.39) i get the value as 1.3900000000000001

I'm using the V2.1 of the dhtmlxslider but still getting the error , it does not happen for other values but only for this value and for 1.64

Kindly help me out

Regards

Krishna Prabakar
Answer posted by Alex (support) on May 27, 2009 07:12

Hello, 

the issue is confirmed. Please, try to use attached file instead of the original one. 

Attachments (1)