Page 1 of 1

Slider issue

Posted: Fri Jul 25, 2014 11:32 am
by Aeneas McBurney

Here's a strange one for you. I have a slider with a max of 100 and min of 0 and when I set value to 58 and save I get 57.99999999 but when I set to 59 or 57 I get correct value? I can obviously fix with a round function but its a bit strange. See screenshot...

Image


Slider issue

Posted: Fri Jul 25, 2014 1:52 pm
by Maryna Brodina

Hello!

Could you clarify how do you read slider value? It worked this way for us: prealert(Apperyio("mobilesliderName").val());/pre


Slider issue

Posted: Fri Jul 25, 2014 10:18 pm
by Aeneas McBurney

Sorry I should clarify that I read the slider value directly into an update data service and then call the value back. So it's been saved to a data table incorrectly.


Slider issue

Posted: Fri Jul 25, 2014 10:21 pm
by Aeneas McBurney

The data type is number in the table too


Slider issue

Posted: Fri Jul 25, 2014 10:23 pm
by Aeneas McBurney

I'm also dividing by 100 and then multiplying by 100 on call back


Slider issue

Posted: Mon Jul 28, 2014 3:14 am
by Yurii Orishchuk

Hi Aeneas,

You faced with problem digital calculations.

You can read about it here: http://stackoverflow.com/questions/14...

Also use following code instead of yours:

pre

return value * 100 / 100

/pre

Regards.