Replace character string


I would like to modify a character string with another
20.5 -> 20,5

it is a function?

Hey baudetd,

I think you’ll need to write your own function for this. You can use a combination of:
float.tostring(), and

Lots of other ways too, of course. Good luck.

If it’s just a single comma, then that’s easy:

local s = "20.5"; local s2 = split(s,"."); server.log(s2[0]+","+s2[1]);