You can write your topic however you want, but you need to answer these questions:
-
I am trying to compare formatted StringValue numbers, basically:
1000 = 1.0K
1600 = 1.6K
16432 = 16.4K
72864 = 72.9K -
What is the issue? Include screenshots / videos if possible!
I cannot compare integers with StringValues, im trying to figure out a way to fix this by using a special function or a different value, I tried IntValue and NumberValue but those dont accept decimals as far as im concerned.
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Looked through multiple other posts involving similar situations but couldnt find any in the exact same situation as I am in, I’m sure they are out there somewhere but I cant find them.
This is the comparing
code that I was talking about
if clicks.Value >= 1000 then
clicks.Value = i18n:Format(clicks.Value)
clicksCounter.Text = clicks.Value
elseif gems.Value >= 1000 then
gems.Value = i18n:Format(gems.Value)
gemsCounter.Text = gems.Value
elseif rebirths.Value >= 1000 then
rebirths.Value = i18n:Format(rebirths.Value)
end
I can provide the full code if anyone wants it, however I dont know how to do a dropdown/spoiler on devforum