Replacing character(not string)

I want to change “-” character to “,” after code block. String replace node not worked. How can i do this ?

Blue means your object is a number, not a string. What you actually have here is a mathematical equation. You need to put a string in quotations (“string”). Then you will be able to use String.Replace.

1 Like

Is there any node for number like a string replace node ?

A little bit of Design-Script can help you here.:wink:


Like this?

1 Like

The problem isn’t the object type. The problem is that you don’t have 17 numbers separated by a “-”, you have a single equation that results in a single number.

296 - 297 = -1 - 141 = - 142 - 142 = -284 …

1 Like

Exactly what @Nick_Boyts said. This is a data types issue. You can’t use a , character in a number - it would have to be a string.