Answered by
8 years ago Edited 8 years ago
3 | local com = tostring (num) |
First up you have to convert your number to a string, then
You put a loop to the amount of the converted number.
This is so that it switches any "." to "," with the gsub (will explain in a second)
Gsub switches a to b in a string and returns the finished value
example:
2 | print (String:gsub( "Hey" , "Hello" )) |
Output: Hello world!
That should work if I understand what you mean..
You can't convert it into a number as 0,2 since that's not a valid number.
If this is not what you mean please leave a comment and tell me.