Math.round skipping value

Hi,

I have 2 faders, one set the max value of the second.
Using Math.round skip some value when I set the first fader to 13.
The second fader show 1 2 3 4 5 6 7 7 9 10 … missing the 8 value

any help would be appreciate :slight_smile:
Best
Zoltan

Steps-Fills.json (11.1 KB)

I don’t have time to look deeper now but the first fader doesn’t actually set the second’s max value per say, there’s a x2 factor involved.

Yes I have to send a value of the fader with a x2 factor. (It’s a software implementation that I cannot change)
I have some values which are skipped, I scratch my head for this one for weeks lol

The second fader should have one extra step for the maths to be correct, that’s the root cause of the issue.

You show me the way !
My mistake was to set the number of step on the fader using the first fader, but missing the 0 step, by adding +1 to the step function all seems to work fine (hope)

#{@{text_stepsvalue_@{parent.variables.ID}}+1}

Steps-Fills.json (11.1 KB)