So basically I am making a system that will do something like this, if you have 1,542 cash or something, it will show as 1.542 Thousand as what it says for your cash instead, so I am guessing I will need to check how many digits it is. Would string.len work?
COMMUNITY QUESTION
Can I find how many digits are in a number value with string.len?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

8 comments
local num = 12345; print(tostring(num):len())
Do not use the len function. Use the length operator. #tostring(num)
https://scriptinghelpers.org/questions/23724/how-do-i-make-a-miners-haven-leaderboard found this a few weeks back to help with the same sort of question you have.
That was a terrible answer.
You could use
tostring, then replace the dot withgsub.tostring(Num):gsub(',', '.')@Phlegethon5778, it wasn't an answer, thus the reason it's a comment.
I was referring to the answer for the linked question. I'm not stupid.
Woah calm down guys. Anyway for the people who told me thanks!