How to abbreviate the numbers in my datastore?

so First this is my script

ame.Players.PlayerAdded:Connect(function(player)

	local Folder = Instance.new("Folder", player)
	wait()
	Folder.Name = "leaderstats"

	local val = Instance.new("IntValue", Folder)
	val.Name = "Level"
	local val2 = Instance.new("IntValue", Folder)
	val2.Name = "Points"
	local val3 = Instance.new("IntValue", Folder)
	val3.Name = "Rebirth"


	local stats = Ds:GetAsync(player.UserId)
		
	--val.Value = 1
	--val2.Value = 0
	--val3.Value = 0
	if stats ~= nil then
		val.Value = stats[1]
		val2.Value = stats[2]
		val3.Value = stats[3]


	else

		val.Value = 1 -- level
		val2.Value = 0 -- Exp
		val3.Value = 0 -- Cash

	end

end)

and this is my current abbreviation script

local abbreviations = {
	N = 10^30;
	O = 10^27;
	Sp = 10^24;
	Sx = 10^21;
	Qn = 10^18;
	Qd = 10^15;
	T = 10^12;
	B = 10^9;
	M = 10^6;
	K = 10^3
}


function abbreviateNums(number)


	local abbreviatedNum = number
	local abbreviationChosen = 0


	for abbreviation, num in pairs(abbreviations) do

		if number >= num and num > abbreviationChosen then

			local shortNum = number / num
			local intNum = math.floor(shortNum)

			abbreviatedNum = tostring(intNum) .. abbreviation .. "+"
			abbreviationChosen = num
		end
	end

	return abbreviatedNum
end

How do I abbreviate this part, so when the player has that much value it will shorten up?

val.Value = stats[1]
val2.Value = stats[2]
val3.Value = stats[3]

Roblox already done that for you,But if you want you could just divide the data by the abbreviatio,then on the leaderboard add the abbreviation