local w=require(script.Parent:WaitForChild("\078\117\109\098\101\114"))local j={}j.Name="\073\110\116\101\103\101\114"j.Default="\048"function j.Process(i,j)local b=w:Process(j)local c=b:find("\037\046")or#b+1 return b:sub(1,c-1)end function j.Verify(i,j)local b=w:Verify(j)return b and not j:find("\037\046")end function j.ToType(j,w)w=j:Verify(w)and w or j.Default return tonumber(w)end return j
local NumberMask = require(script.Parent:WaitForChild("Number"))

local Mask = {}

Mask.Name = "Integer"
Mask.Default = "0"

function Mask:Process(text)
	local new = NumberMask:Process(text)
	local find = new:find("%.") or #new + 1

	return new:sub(1, find - 1)
end

function Mask:Verify(text)
	local valid = NumberMask:Verify(text)
	return (valid and not text:find("%."))
end

function Mask:ToType(text)
	text = self:Verify(text) and text or self.Default
	return tonumber(text)
end

return Mask