Exceed over 10^18 (How do I get bigger numbers)

I need help, I was scripting my simulator abbreviation and when I finished, I tried getting numbers like “sx”, “Sp”, “O”, “N”, “de”, “Ud”, “DD”, “tdD”, “qdD”, “QnD”, “sxD” but the max was “qn”, how do I get bigger numbers, bigger than the default for roblox

Screenshot 2022-01-06 134612
this is the max 10^18 (look at the diamonds)
Capture
this is when I do 10^19 (over the max)

You have to divide the numbers, because functions return stuff like 1E19

Numbers can go up to like 10^308 (although losing some precision along the way).

It might help if you showed the code you’re using to do the abbreviation.

I wrote a function a while ago to do this here if its helpful: How do I shorten this numbers? - #6 by nicemike40

1 Like
local function format(value)
	for i=1, #suffixes do
		if tonumber(value) < 10^(i*3) then
			return math.floor(value/((10^((i-1)*3))/100))/(100)..suffixes[i]
		end
	end
end

this is how i format my numbers, it just doesnt work over 18 zeros then i use a while function to keep updating it

its really similar to the script you made, im going to try out ur script

If you’re using Values, make sure you’re using NumberValues instead of IntValues

I am using IntValues why does that matter?

IntValues don’t go as high as NumberValues, that’s the exact issue you’re having

1 Like

So that was the problem, I thought it was going to be more mathematical, but thank you :smiley:

1 Like

That will only increase the limit to 2^1023 which isn’t enough for some endless simulators which is why there are number modules that increases the limit way higher.

1 Like