Using % in DesignScript

Morning all,
any way to use % in Design Script as a “string”? I just want to add the symbol to a string but Design Script insist on multiplying it by 100 ahahahahah
Thanks

Do you mean this?

1 Like

Great idea to define a function :slight_smile:Thanks

Try with decimals, won’t work with the function

It should work simply:


The issue could lie somewhere else…

Could you upload a couple of screenshots?

Number + "%" works in a code block without the function as well. Even if the number is 1.1.

If you need to remove trailing zeros because you’re winding up with 1.1000000% as the output there are solutions for that as well, but the community needs to see your graph and output to effectively help here.