Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Slider issue

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Slider issue

Hello!

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

Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Slider issue

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.

Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Slider issue

The data type is number in the table too

Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Slider issue

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Slider issue

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.

Return to “Issues”