local A=require(script.Parent:WaitForChild("\078\117\109\098\101\114"))local m={}m.Name="\073\110\116\101\103\101\114"m.Default="\048"function m.Process(Y,m)local x=A:Process(m)local a=x:find("\037\046")or#x+1 return x:sub(1,a-1)end function m.Verify(Y,m)local x=A:Verify(m)return x and not m:find("\037\046")end function m.ToType(m,A)A=m:Verify(A)and A or m.Default return tonumber(A)end return m
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