Why doesn’t this work?
format_slider.gh (6.8 KB)
Doesn’t Format take a string as input? I’m pretty sure the number slider doesn’t produce any type of strings inside the component.
If you’re trying to round to a certain decimal place, Pufferfish has a component you can use, or you can setup a script to do it. (2) Grasshopper | Round to Specific Decimal - YouTube
I know how to round numbers I’m just wondering why the formatting does not work inside a slider.
@martinsiegrist
It works, if the output is a number and not a string.
Converting to int works, but negates the purpose.
I don’t know how to convert to float in the Expression editor…
I tried CDbl(x) and then CStr(x) but unfortunately no success.