Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I make numeral prefixes work in game?

In some games, you can see it says "100M" and not "100000000"

Not asking for a script, but I am asking for which string/function I would use to make this work.

1 answer

There is no built in function so you would have to make your own.

You can use the # to get the length of the number as a string and have a table of prefix thresholds (7=M,10=B etc) and compare the string length to a value in the table and use that to format it.

(i have working code ill post when i can)

This discussion is preserved as it was. New answers, comments, and votes are closed.