What do you want to achieve? Keep it simple and clear!
Title
What is the issue? Include screenshots / videos if possible!
I don’t know how to do that
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
i tryed to use >= 0 <= 0.99, but didn’t help
My code:
local PlayerService = game:GetService("Players")
local Player = PlayerService.LocalPlayer
local Points = Player.leaderstats.Points
local PlayerGui = Player.PlayerGui
local GameGUI = PlayerGui.GameGUI
local Label = GameGUI.GameFrame.PlayableFrame.PointsShop.TextLabel
Points.Changed:Connect(function()
if Points.Value >= 1000000 <= 999999999 then -- this place where i need to do that
Label.Text = "Your Points: "..(Points.Value/1000000).."M"
end
if Points.Value >= 1000000000 then
Label.Text = "Your Points: "..(Points.Value/1000000000).."M"
end
end)
It takes a number and gets its “magnitude” for lack of a better term.
The “magnitude” in this scenario represents what you would have to raise 10 by to get the original number.
In English we commonly suffix numbers every 3 powers, so we can divide this magnitude by 3.
We can then round this magnitude down so that we can use it as an index to a suffix array. This suffix array will be sorted by lowest suffix to highest.
I am surprised you “need more suffixes”. I provided a suffix list up to UVG (10^66) Simply add higher suffixes inside the table, but make sure the suffixes are in order from least to smallest.