How would I go about formatting text, like turning “12,500” into “12.5K?”
kozak456pl
(FranciscoGranco)
July 17, 2022, 7:05pm
#2
local Input = 1321312312
if Input < 1e6 and Input >= 1e3 then
local text = tostring(Input/1e3):sub(1,5) .. "K"
elseif Input < 1e9 and Input >= 1e6 then
local text = tostring(Input/1e6):sub(1,5) .. "M"
end
you can use something like this
1 Like
4SHN
(4SHN)
July 17, 2022, 7:10pm
#3
there are some public resources on that
This is an all-in-one number formatting module designed for displaying numbers in a more user friendly way. It is not designed for internationlization but there are enough features so if you want a basic internationlization (no unit formatting, RBNF or something like that but a basic decimal comma and point change with Symbols but keep in mind that this is not documented here), it’ll work just fine.
Why this module?
Aside from being the more known module (with over 100 likes), this is a solid …
Hey! I have decided to open source my extended number system module that I’ve been working on all year. This module allows you to use numbers that go so much further than 1.79e+308 (somewhere around 1.79e+308e+1.79e+308). It includes many functions that the math library also includes and can also be used for negative numbers.
How to generally use the module:
To make a new number, you will need to do something like this:
local numbers = require(game.ReplicatedStorage.modules.numbers)
local num…
https://devforum.roblox.com/search?q=number%20suffix%20%23resources:community-resources
1 Like