Hello!! Thanks for looking at my post! This is a module I made which I really like, and will use on my own games!
This module allows you to have more “beautiful” numbers! Like, having 23K instead of 23000.
Or having 23,000 instead of 23000.
This does all that for you.
Currently it has two functions:
beautifyModule:AddCommas(number)
This one adds commas to the numbers. It has a limit of about 1 trillion / quadrillion (not sure rn)
But it should do everything fine, and if it doesn’t support that value it would simply give you the raw number, so no worries about it not showing data.
Examples:
Code Example:
local beautifyModule = require(game.ReplicatedStorage.NumberBeautify)
local number = 10000000 -- 10 Million.
local convertedNumber = beautifyModule:AddCommas(number)
print(convertedNumber)
Result:
beautifyModule:Simplify(number)
This function adds a (“K”, “M” or “T”) in the end and makes the number easier to read overall.
Examples:
Code Example:
local beautifyModule = require(game.ReplicatedStorage.NumberBeautify)
local number = 250000 -- 250 thousand.
local convertedNumber = beautifyModule:Simplify(number)
print(convertedNumber)
Result:
https://www.roblox.com/library/6149957723/Number-Beautify-Module
Any new functions that we together can add, since this is open-source can be added if theres a reply or message about it to me / to this topic.
This module will still be updated, for glitches, and features. I will make sure that will still work with older code! No worries!
If you need help with the code to make this work, you can message me. I recommend not replying for questions like that! I’ll be sure to answer you since I’m pretty active here!
Happy Christmas! (It’s 28th December nevermind…) but still!