Slider with expression in RH8

Hi,

In RH7 I quite often use expressions in sliders. In RH 8 this is still possible but it does something strange with the rounding to decimals.

What is your expression? That is an integer slider, there should be no decimal places, eh?

Where is your code? :man_facepalming:

3. Attach minimal versions of all the relevant files

expression is visible in the the number slider.
x*0.6
next to slider there is no code. :slight_smile:
It more a sort of bug which I like to report to the people of mcneel.
In RH7 it gave me the correct outcome: 5.4

5.4 from an integer slider? That’s debatable.

Change your expression to this: round(x * 0.6, 1) (or however many decimal places you want)

Thanks @Joseph_Oster ,
This work around worked.
Although I am curious why 9*0.6 gives me a 5.399999999… value
With RH7 this worked as you would expect.

Hi -
Possibly debatable but on the list as RH-80444 Grasshopper: Slider expression rounding issue
-wim

2 Likes