Itoo Software Forum

Author Topic: Position by Selector  (Read 532 times)

Dragan

  • Hero Member
  • *****
  • Posts: 503
Position by Selector
« on: August 20, 2019, 12:45:01 PM »
Hi
I`m missing the segment after 0.6 input value and the only increment of 0.5 is working so I cant get e.g. value 0.33, 0.51... to work.

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2579
    • iToo
Re: Position by Selector
« Reply #1 on: August 20, 2019, 01:08:42 PM »
It is probably due to some rounding errors, as changing expression to "<" instead of "==" creates correct result

Rokas
iToo Software

Dragan

  • Hero Member
  • *****
  • Posts: 503
Re: Position by Selector
« Reply #2 on: August 20, 2019, 01:14:29 PM »
Yes, I noticed that, but my goal was to position the segment at a specific location on Y.
So, is this a bug or is this the way RC process it?

Dragan

  • Hero Member
  • *****
  • Posts: 503
Re: Position by Selector
« Reply #3 on: August 20, 2019, 01:17:33 PM »
...and Rokas, while I have you on line  :D
I had some question on GeraldW topic:
https://forum.itoosoft.com/railclone-pro/venetian-blinds/
« Last Edit: August 20, 2019, 01:20:17 PM by Dragan »

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2579
    • iToo
Re: Position by Selector
« Reply #4 on: August 20, 2019, 01:28:31 PM »
Yes, I noticed that, but my goal was to position the segment at a specific location on Y.
So, is this a bug or is this the way RC process it?

That is not a bug. As general rule when programming, never use == with real/float.
Probably there are some other way to do that ?
Rokas
iToo Software

Dragan

  • Hero Member
  • *****
  • Posts: 503
Re: Position by Selector
« Reply #5 on: August 20, 2019, 01:34:59 PM »
Ok. Thank you Rokas.

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3619
    • iToo Software
Re: Position by Selector
« Reply #6 on: August 20, 2019, 02:03:07 PM »
More information, if you are curious about this issue: https://floating-point-gui.de/errors/comparison/
Carlos Quintero
iToo Software

Dragan

  • Hero Member
  • *****
  • Posts: 503
Re: Position by Selector
« Reply #7 on: August 20, 2019, 02:12:23 PM »
Thank you, guys.
I see the limitation is not due to RC.
I have the workaround already I just had some idea to force RC4 to the limits but the limit is just too far away!!!  ;D :D