Page 1 of 1

Mix in eepSKYe

Posted: Sat Sep 13, 2014 10:40 am
by Suncoaster
I am not sure if this is a minor bug or it is my usage of the feature. I was adding a slow up and down on a mix and when I save it and exit I lose 0.1 from the setting i.e. if I set it at 1.0 it saves as 0.9 :?

Re: Mix in eepSKYe

Posted: Sat Sep 13, 2014 10:57 am
by MikeB
That's a classic little bug when using floating point values. I'll check on it.

Mike.

Re: Mix in eepSKYe

Posted: Sat Sep 13, 2014 11:00 am
by jhsa
I just tried to reproduce the problem and I am not able to.. Mike, what are the floating point values? I don't know the term, sorry about my ignorance.. :)

João

Re: Mix in eepSKYe

Posted: Sat Sep 13, 2014 11:19 am
by MikeB
Numbers with a decimal point and digits after it! They can't be accurately represented in binary.
If you set a slow value of 1.0 by clicking on the 'up' button 10 times, it displays as 1.0, but gets saved as 0.9. If you click up to 1.1, then down to 1.0, it gets saved as 1.0. typing 1.0 in also works OK.
I've already edited the source code to fix this, not sure when I will build an executable.

Mike.

Re: Mix in eepSKYe

Posted: Sat Sep 13, 2014 11:34 am
by Suncoaster
No big one Mike, I thought I might have been doing something wrong. In future I will just type the value instead of clicking the 'up' button to set the value.

Dave

Re: Mix in eepSKYe

Posted: Sat Sep 13, 2014 11:36 am
by jhsa
Thanks Mike. Now I understand the problem.. Funny that until 0.5 it works as supposed but from 0.6 onwards the problem is there.. After two, at least with the values I selected, It didn't seem to do the problem..

João