TwyPlasma Number Abbreviation Module

How to use the module:
You can either download the module
or
require(6055441479)

Abbreviation
local module = require(id or module) 
local a = module.Simplify(number, decimal places) 
print(a) --Would print abbreviated number

--Example

print(module.Simplify(24686, 2) --Prints 24.68K

print(module.Simplify(24686) --Prints 24.6K

Post with source code

Will add more features in the future

If there are any problems please send me a private message. Thanks!

4 Likes

Update: Fixed a problem where numbers below 1000 would be just returned as nil

1 Like

New features!
Can now decide the number of decimals you want. Default is 1 if you do not put

1 Like

Now if you put in something that is not a number, you get a the warning and also it returns NaN