Conversion from string "0.5" to type 'Double' is not valid

Hello Everyone!
for sometime now I’m getting errors during optimization and my canvas turns red… I changed my approach and instead of using numberslider with expressions, used Expression component and write down a simple formula. but I’m still getting errors, this time it says “Expression generated an error for (x): Conversion from string “0.5” to type ‘Double’ is not valid”.
what should I do? Is there anyway to solve this?

Hi Fateme -
I can’t reproduce that issue here:


hmm, how do you get fractions in the panel?


Why don’t you post your Grasshopper file?

1 Like