Around a year ago, I made a simple module called “Numeral Module”. It had a few useful functions, but it was made very poorly. So I decided to remake it! The link and a few examples are listed below.
Link : [Numeral Module v2!! - Roblox]
Examples
Examples :
.
.
.
module.insertCommas(number)
Adds commas every 3 digits in number, and returns it as a string.
Example:
insertCommas(1234765) >>>>> 1,234,765
insertCommas(98657.04321) >>>>> 98,657.04321
.
.
.
module.abbreviate(number)
Abbreviates number with letters at end, returns a string
Example:
abbreviate(765080) >>>>> 765.08k
abbreviate(100432687) >>>>> 100.43m
.
.
.
module.reverseAbbreviate(string)
Basically just reverses the action of the abbreviate function.
Example:
reverseAbbreviate(“123.49k”) >>>>> 123490
reverseAbbreviate(“65.325m”) >>>>> 65325000
If you want to know how to change something without breaking it, either send me a message or leave a comment.
If you have any suggestions for functions, or feedback on the module please let me know below!